Exemplo n.º 1
0
 public static void AddLine(this CustomTraceLog log, string message, bool inNewLine = true, int level = 0)
 {
     if (log != null)
     {
         log._AddLine(message, inNewLine, level);
     }
 }
Exemplo n.º 2
0
 public static void AddException(this CustomTraceLog log, Exception e, string additionalMessage = null)
 {
     if (log != null)
     {
         log._AddLine("============================= Exception ===========================");
         if (additionalMessage != null)
         {
             log._AddLine(additionalMessage);
             log._AddLine("-------------------------------------------------------------------");
         }
         e = BuildingBlocks.Common.Misc.GetDeepestException(e);//this is usually most interesting part
         log._AddLine(e.Message);
         log._AddLine(e.StackTrace);
         log._AddLine("===================================================================");
     }
 }