Ejemplo n.º 1
0
 /// <summary>
 /// Logs a message.
 /// </summary>
 public static void Log(string name, TraceEventType type, string message, params object[] args)
 {
     if (Logger.LogAction != null)
     {
         Logger.LogAction(name, type.ToInvariantString().ToLower(), string.Format(message, args), null);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Logs a message.
 /// </summary>
 public static void Log(string name, TraceEventType type, string message, params object[] args)
 {
     if (Logger.LogAction == null)
     {
         Logger.LogAction = (o, level, localmessage, parameters) =>
         {
             System.Diagnostics.Debug.WriteLine(string.Format("[{0}] {1} - {2}", o, level, localmessage));
         };
     }
     Logger.LogAction(name, type.ToInvariantString().ToLower(), string.Format(message, args), null);
 }