EventLog.cs 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. //
  2. // System.Diagnostics.EventLog.cs
  3. //
  4. // Authors:
  5. // Jonathan Pryor ([email protected])
  6. //
  7. // (C) 2002
  8. //
  9. using System;
  10. using System.Diagnostics;
  11. using System.ComponentModel;
  12. namespace System.Diagnostics {
  13. [MonoTODO("This class is just stubbed out")]
  14. public class EventLog : Component, ISupportInitialize {
  15. private string source;
  16. private string logName;
  17. private string machineName;
  18. public EventLog() : this ("")
  19. {
  20. }
  21. public EventLog(string logName) : this (logName, "")
  22. {
  23. }
  24. public EventLog(string logName, string machineName)
  25. : this (logName, machineName, "")
  26. {
  27. }
  28. public EventLog(string logName, string machineName,
  29. string source)
  30. {
  31. this.source = source;
  32. this.machineName = machineName;
  33. this.logName = logName;
  34. }
  35. // [MonoTODO]
  36. // public bool EnableRaisingEvents {
  37. // get {return false;}
  38. // set {/* ignore */}
  39. // }
  40. //
  41. // [MonoTODO]
  42. // public EventLogEntryCollection Entries {
  43. // get {return null;}
  44. // }
  45. //
  46. // [MonoTODO]
  47. // public string Log {
  48. // get {return log;}
  49. // set {log = value;}
  50. // }
  51. //
  52. // [MonoTODO]
  53. // public string LogDisplayName {
  54. // get {return "";}
  55. // }
  56. //
  57. // [MonoTODO]
  58. // public string MachineName {
  59. // get {return machineName;}
  60. // set {/* ignore */}
  61. // }
  62. //
  63. // [MonoTODO]
  64. // public string Source {
  65. // get {return source;}
  66. // set {/* ignore */}
  67. // }
  68. //
  69. // [MonoTODO]
  70. // public ISynchronizeInvoke SynchronizingObject {
  71. // get {return null;}
  72. // set {/* ignore */}
  73. // }
  74. //
  75. [MonoTODO]
  76. public void BeginInit()
  77. {
  78. throw new NotImplementedException ();
  79. }
  80. // [MonoTODO]
  81. // public void Clear()
  82. // {
  83. // throw new NotImplementedException ();
  84. // }
  85. //
  86. // [MonoTODO]
  87. // public void Close()
  88. // {
  89. // throw new NotImplementedException ();
  90. // }
  91. //
  92. // [MonoTODO]
  93. // public static void CreateEventSource(string source,
  94. // string logName)
  95. // {
  96. // throw new NotImplementedException ();
  97. // }
  98. //
  99. // [MonoTODO]
  100. // public static void CreateEventSource(string source,
  101. // string logName,
  102. // string machineName)
  103. // {
  104. // throw new NotImplementedException ();
  105. // }
  106. //
  107. // [MonoTODO]
  108. // public static void Delete(string logName)
  109. // {
  110. // throw new NotImplementedException ();
  111. // }
  112. //
  113. // [MonoTODO]
  114. // public static void Delete(string logName, string machineName)
  115. // {
  116. // throw new NotImplementedException ();
  117. // }
  118. //
  119. // [MonoTODO]
  120. // public static void DeleteEventSource(string source)
  121. // {
  122. // throw new NotImplementedException ();
  123. // }
  124. //
  125. // [MonoTODO]
  126. // public static void DeleteEventSource(string source,
  127. // string machineName)
  128. // {
  129. // throw new NotImplementedException ();
  130. // }
  131. //
  132. // [MonoTODO]
  133. // protected override void Dispose(bool disposing)
  134. // {
  135. // throw new NotImplementedException ();
  136. // }
  137. //
  138. [MonoTODO]
  139. public void EndInit()
  140. {
  141. throw new NotImplementedException ();
  142. }
  143. // [MonoTODO]
  144. // public static bool Exists(string logName)
  145. // {
  146. // throw new NotImplementedException ();
  147. // }
  148. //
  149. // [MonoTODO]
  150. // public static bool Exists(string logName, string machineName)
  151. // {
  152. // throw new NotImplementedException ();
  153. // }
  154. //
  155. // [MonoTODO]
  156. // public static EventLog[] GetEventLogs()
  157. // {
  158. // throw new NotImplementedException ();
  159. // }
  160. //
  161. // [MonoTODO]
  162. // public static EventLog[] GetEventLogs(string machineName)
  163. // {
  164. // throw new NotImplementedException ();
  165. // }
  166. //
  167. // [MonoTODO]
  168. // public static string LogNameFromSourceName(string source,
  169. // string machineName)
  170. // {
  171. // throw new NotImplementedException ();
  172. // }
  173. //
  174. // [MonoTODO]
  175. // public static bool SourceExists(string source)
  176. // {
  177. // throw new NotImplementedException ();
  178. // }
  179. //
  180. // [MonoTODO]
  181. // public static bool SourceExists(string source,
  182. // string machineName)
  183. // {
  184. // throw new NotImplementedException ();
  185. // }
  186. //
  187. // [MonoTODO]
  188. // public void WriteEntry(string message)
  189. // {
  190. // throw new NotImplementedException ();
  191. // }
  192. //
  193. // [MonoTODO]
  194. // public void WriteEntry(string message, EventLogEntryType type)
  195. // {
  196. // throw new NotImplementedException ();
  197. // }
  198. //
  199. // [MonoTODO]
  200. // public static void WriteEntry(string source, string message)
  201. // {
  202. // throw new NotImplementedException ();
  203. // }
  204. //
  205. // [MonoTODO]
  206. // public void WriteEntry(string message, EventLogEntryType type,
  207. // int eventID)
  208. // {
  209. // throw new NotImplementedException ();
  210. // }
  211. //
  212. // [MonoTODO]
  213. // public static void WriteEntry(string source, string message,
  214. // EventLogEntryType type)
  215. // {
  216. // throw new NotImplementedException ();
  217. // }
  218. //
  219. // [MonoTODO]
  220. // public void WriteEntry(string message, EventLogEntryType type,
  221. // int eventID,
  222. // short category)
  223. // {
  224. // throw new NotImplementedException ();
  225. // }
  226. //
  227. // [MonoTODO]
  228. // public static void WriteEntry(string source, string message,
  229. // EventLogEntryType type, int eventID)
  230. // {
  231. // throw new NotImplementedException ();
  232. // }
  233. //
  234. // [MonoTODO]
  235. // public void WriteEntry(string message, EventLogEntryType type,
  236. // int eventID,
  237. // short category, byte[] rawData)
  238. // {
  239. // throw new NotImplementedException ();
  240. // }
  241. //
  242. // [MonoTODO]
  243. // public static void WriteEntry(string source, string message,
  244. // EventLogEntryType type, int eventID, short category)
  245. // {
  246. // throw new NotImplementedException ();
  247. // }
  248. //
  249. // [MonoTODO]
  250. // public static void WriteEntry(string source, string message,
  251. // EventLogEntryType type, int eventID, short category,
  252. // byte[] rawData)
  253. // {
  254. // throw new NotImplementedException ();
  255. // }
  256. public event EntryWrittenEventHandler EntryWritten;
  257. }
  258. }