Exemple #1
0
 /// <summary>
 /// Logs the given info to the audit table in the pplog database
 /// </summary>
 public void Log(
     String executingEntity,
     WlkMiEvent eventId,
     WlkMiCat cat,
     String msg)
 {
     Log(executingEntity, eventId, cat, msg, null);
 }
Exemple #2
0
 /// <summary>
 /// Logs the given info to the audit table in the log database
 /// </summary>
 public void Log(
     String executingEntity,
     WlkMiEvent eventId,
     WlkMiCat cat,
     String msg,
     Exception e)
 {
     Log(executingEntity, eventId, cat, msg, e, false);
 }
Exemple #3
0
 /// <summary>
 /// Logs the given info to the audit table in the wclog database
 /// </summary>
 public void Log(
     String executingEntity,
     WlkMiEvent eventId,
     WlkMiCat cat,
     String msg,
     Exception e,
     bool forceIntoEventLog)
 {
     switch (cat)
     {
         case WlkMiCat.Error: Logger.Error(
            executingEntity + ":" + eventId.ToString() + ":" + msg, e);
             break;
         case WlkMiCat.Warning: Logger.Warn(
             executingEntity + ":" + eventId.ToString() + ":" + msg, e);
             break;
         default:
             Logger.Info(
                 executingEntity + ":" + eventId.ToString() + ":" + msg, e);
             break;
     }
 }