public static void WriteEntry(string source, string message, EventLogEntryType type, int eventID, short category, byte[] rawData) { using (EventLogInternal internal2 = new EventLogInternal("", ".", CheckAndNormalizeSourceName(source))) { internal2.WriteEntry(message, type, eventID, category, rawData); } }
public static void WriteEvent(string source, EventInstance instance, byte[] data, params object[] values) { using (EventLogInternal internal2 = new EventLogInternal("", ".", CheckAndNormalizeSourceName(source))) { internal2.WriteEvent(instance, data, values); } }
internal EventLogEntry(byte[] buf, int offset, EventLogInternal log) { this.dataBuf = buf; this.bufOffset = offset; this.owner = log; GC.SuppressFinalize(this); }
/// <devdoc> /// </devdoc> /// <internalonly/> private EventLogEntry(SerializationInfo info, StreamingContext context) { dataBuf = (byte[])info.GetValue("DataBuffer", typeof(byte[])); string logName = info.GetString("LogName"); string machineName = info.GetString("MachineName"); owner = new EventLogInternal(logName, machineName, ""); GC.SuppressFinalize(this); }
public EventLog(string logName, string machineName, string source) { _underlyingEventLog = new EventLogInternal(logName, machineName, source, this); }
internal EventLogEntryCollection(EventLogInternal log) { this.log = log; }