Example #1
0
 /// <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);
     }
 }
Example #2
0
 /// <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);
     }
 }
Example #3
0
 public void WriteTrace(TraceEventType evtType, TraceEventId eventId, string format, params object[] args)
 {
     if (source == null)
     {
         return;
     }
     source.TraceEvent(evtType, (int)eventId, format, args);
 }
Example #4
0
 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 WriteTrace(TraceEventType evtType, TraceEventId eventId, string format, params object[] args)
 {
     if (source == null)
     {
         return;
     }
     source.TraceEvent(evtType, (int)eventId, format, args);
 }
Example #9
0
 public void WriteErrorTrace(TraceEventId eventId, string msg)
 {
     WriteTrace(TraceEventType.Error, eventId, msg);
 }
Example #10
0
 public void WriteInformationTrace(TraceEventId eventId, string msg, params object[] args)
 {
     WriteTrace(TraceEventType.Information, eventId, msg, args);
 }
Example #11
0
 /// <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 WriteTrace(TraceEventType evtType, TraceEventId eventId, string msg)
 {
     if (source == null)
     {
         return;
     }
     source.TraceEvent(evtType, (int)eventId, 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);
 }
Example #15
0
 public void WriteErrorTrace(TraceEventId eventId, Exception exception)
 {
     WriteTrace(TraceEventType.Error, eventId, exception.ToString());
 }
Example #16
0
 public void WriteErrorTrace(TraceEventId eventId, string msg, params object[] args)
 {
     WriteTrace(TraceEventType.Error, eventId, msg, args);
 }
Example #17
0
        /// <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);
        }
Example #18
0
 public void WriteConfigDiagnosticInfo(TraceEventType evtType, TraceEventId evtId, string format, params object[] args)
 {
     WriteDiagnosticInfo(ConfigTrace, evtType, evtId, format, args);
 }
Example #19
0
 public void WriteConfigDiagnosticInfo(TraceEventType evtType, TraceEventId evtId, string msg)
 {
     WriteDiagnosticInfo(ConfigTrace, evtType, evtId, msg);
 }
 public void WriteErrorTrace(TraceEventId eventId, Exception exception)
 {
     WriteTrace(TraceEventType.Error, eventId, exception.ToString());
 }
Example #21
0
 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);
 }
Example #23
0
 public void WriteVerboseTrace(TraceEventId eventId, string msg, params object[] args)
 {
     WriteTrace(TraceEventType.Verbose, eventId, msg, args);
 }
Example #24
0
 /// <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);
 }
Example #25
0
 public void WriteInformationTrace(TraceEventId eventId, string msg)
 {
     WriteTrace(TraceEventType.Information, eventId, msg);
 }