/// <summary> /// Writes an erorr entry with the given exception text to the event log, /// using the specified registered event source. /// </summary> /// <param name="src">Event Source Name</param> /// <param name="x">Excpetion string</param> public static void error(string src, Exception x) { lock (typeof(internal_log)) { LOG.check(src); EventLog.WriteEntry(src, x.ToString(), EventLogEntryType.Error); } }
/// <summary> /// Writes an erorr entry with the given message text to the event log, /// using the specified registered event source. /// </summary> /// <param name="src">Event Source Name</param> /// <param name="msg">Message to be written to the event log</param> public static void error(string src, string msg) { lock (typeof(internal_log)) { LOG.check(src); EventLog.WriteEntry(src, msg, EventLogEntryType.Error); } }
/// <summary> /// Writes an information entry with the given message text to the event log, /// using the specified registered event source. /// </summary> /// <param name="src">Event Source Name</param> /// <param name="msg">Message to be written to the event log</param> public static void info(string src, string msg) { lock (typeof(internal_log)) { LOG.check(src); EventLog.WriteEntry(src, msg, EventLogEntryType.Information); } }