/// <summary> /// Writes the diagnostic info. /// </summary> /// <param name="src">The SRC.</param> /// <param name="evtType">Type of the evt.</param> /// <param name="evtId">The evt ID.</param> /// <param name="format">The format.</param> /// <param name="args">The args.</param> public void WriteDiagnosticInfo(TraceSource src, TraceEventType evtType, TraceEventId evtId, string format, params object[] args) { if (src != null) { src.TraceEvent(evtType, (int)evtId, format, args); } }
/// <summary> /// Writes the diagnostic info. /// </summary> /// <param name="src">The TraceSource to write to.</param> /// <param name="evtType">Type of the evt.</param> /// <param name="evtId">The evt ID.</param> /// <param name="msg">The MSG.</param> public void WriteDiagnosticInfo(TraceSource src, TraceEventType evtType, TraceEventId evtId, string msg) { if (src != null) { src.TraceEvent(evtType, (int)evtId, msg); } }
public void WriteTrace(TraceEventType evtType, TraceEventId eventId, string format, params object[] args) { if (source == null) { return; } source.TraceEvent(evtType, (int)eventId, format, args); }
public void WriteTrace(TraceEventType evtType, TraceEventId eventId, string msg) { if (source == null) { return; } source.TraceEvent(evtType, (int)eventId, msg); }
public void WriteErrorTrace(TraceEventId eventId, string msg) { WriteTrace(TraceEventType.Error, eventId, msg); }
public void WriteVerboseTrace(TraceEventId eventId, string msg, params object[] args) { WriteTrace(TraceEventType.Verbose, eventId, msg, args); }
public void WriteVerboseTrace(TraceEventId eventId, string msg) { WriteTrace(TraceEventType.Verbose, eventId, msg); }
public void WriteInformationTrace(TraceEventId eventId, string msg, params object[] args) { WriteTrace(TraceEventType.Information, eventId, msg, args); }
/// <summary> /// Shortcut method for logging to the MainTrace source /// </summary> /// <param name="evtType">Type of the evt.</param> /// <param name="evtId">The evt ID.</param> /// <param name="msg">The MSG.</param> public void WriteMainDiagnosticInfo(TraceEventType evtType, TraceEventId evtId, string msg) { WriteDiagnosticInfo(MainTrace, evtType, evtId, msg); }
public void WriteInformationTrace(TraceEventId eventId, string msg) { WriteTrace(TraceEventType.Information, eventId, msg); }
public void WriteErrorTrace(TraceEventId eventId, string msg, params object[] args) { WriteTrace(TraceEventType.Error, eventId, msg, args); }
public void WriteErrorTrace(TraceEventId eventId, Exception exception) { WriteTrace(TraceEventType.Error, eventId, exception.ToString()); }
/// <summary> /// Logs a verbose level message. /// </summary> /// <param name="id">Trace event id.</param> /// <param name="format">The message format.</param> /// <param name="args">The message args for formatting.</param> public static void Verbose(TraceEventId id, string format, params object[] args) { string logMessage = FormatMessage(format, args); LayerscapeTraceSource.TraceEvent(TraceEventType.Verbose, (int)id, logMessage); }
public void WriteConfigDiagnosticInfo(TraceEventType evtType, TraceEventId evtId, string format, params object[] args) { WriteDiagnosticInfo(ConfigTrace, evtType, evtId, format, args); }
public void WriteConfigDiagnosticInfo(TraceEventType evtType, TraceEventId evtId, string msg) { WriteDiagnosticInfo(ConfigTrace, evtType, evtId, msg); }