2 // System.Diagnostics.EventLog.cs
5 // Jonathan Pryor (jonpryor@vt.edu)
11 using System.Diagnostics;
12 using System.ComponentModel;
14 namespace System.Diagnostics {
16 [MonoTODO("This class is just stubbed out")]
17 public class EventLog : Component, ISupportInitialize {
19 private string source;
20 private string logName;
21 private string machineName;
23 public EventLog() : this ("")
27 public EventLog(string logName) : this (logName, "")
31 public EventLog(string logName, string machineName)
32 : this (logName, machineName, "")
36 public EventLog(string logName, string machineName,
40 this.machineName = machineName;
41 this.logName = logName;
45 // public bool EnableRaisingEvents {
46 // get {return false;}
51 // public EventLogEntryCollection Entries {
56 // public string Log {
62 // public string LogDisplayName {
67 // public string MachineName {
68 // get {return machineName;}
73 // public string Source {
74 // get {return source;}
79 // public ISynchronizeInvoke SynchronizingObject {
85 public void BeginInit()
87 throw new NotImplementedException ();
91 // public void Clear()
93 // throw new NotImplementedException ();
97 // public void Close()
99 // throw new NotImplementedException ();
103 // public static void CreateEventSource(string source,
106 // throw new NotImplementedException ();
110 // public static void CreateEventSource(string source,
112 // string machineName)
114 // throw new NotImplementedException ();
118 // public static void Delete(string logName)
120 // throw new NotImplementedException ();
124 // public static void Delete(string logName, string machineName)
126 // throw new NotImplementedException ();
130 // public static void DeleteEventSource(string source)
132 // throw new NotImplementedException ();
136 // public static void DeleteEventSource(string source,
137 // string machineName)
139 // throw new NotImplementedException ();
143 // protected override void Dispose(bool disposing)
145 // throw new NotImplementedException ();
149 public void EndInit()
151 throw new NotImplementedException ();
155 // public static bool Exists(string logName)
157 // throw new NotImplementedException ();
161 // public static bool Exists(string logName, string machineName)
163 // throw new NotImplementedException ();
167 // public static EventLog[] GetEventLogs()
169 // throw new NotImplementedException ();
173 // public static EventLog[] GetEventLogs(string machineName)
175 // throw new NotImplementedException ();
179 // public static string LogNameFromSourceName(string source,
180 // string machineName)
182 // throw new NotImplementedException ();
186 // public static bool SourceExists(string source)
188 // throw new NotImplementedException ();
192 // public static bool SourceExists(string source,
193 // string machineName)
195 // throw new NotImplementedException ();
199 // public void WriteEntry(string message)
201 // throw new NotImplementedException ();
205 // public void WriteEntry(string message, EventLogEntryType type)
207 // throw new NotImplementedException ();
211 // public static void WriteEntry(string source, string message)
213 // throw new NotImplementedException ();
217 // public void WriteEntry(string message, EventLogEntryType type,
220 // throw new NotImplementedException ();
224 // public static void WriteEntry(string source, string message,
225 // EventLogEntryType type)
227 // throw new NotImplementedException ();
231 // public void WriteEntry(string message, EventLogEntryType type,
235 // throw new NotImplementedException ();
239 // public static void WriteEntry(string source, string message,
240 // EventLogEntryType type, int eventID)
242 // throw new NotImplementedException ();
246 // public void WriteEntry(string message, EventLogEntryType type,
248 // short category, byte[] rawData)
250 // throw new NotImplementedException ();
254 // public static void WriteEntry(string source, string message,
255 // EventLogEntryType type, int eventID, short category)
257 // throw new NotImplementedException ();
261 // public static void WriteEntry(string source, string message,
262 // EventLogEntryType type, int eventID, short category,
265 // throw new NotImplementedException ();
268 public event EntryWrittenEventHandler EntryWritten;