Example #1
0
File: StdLog.cs Project: Kidify/L4p
        ILogFile ILogFile.Error(Exception ex, string msg, params object[] args)
        {
            var sb = new StringBuilder();

            sb
                .Append(msg.Fmt(args))
                .StartNewLine()
                .Append(ex.FormatHierarchy());

            write_msg("E", sb.ToString());
            return this;
        }
Example #2
0
        private void initialization_is_failed(string moduleName, Exception ex)
        {
            string msg = "Failed to initialize module '{0}'; {1}".Fmt(moduleName, ex.Message);

            _initializationFailureMsg = msg;
            TraceLogger.WriteLine(ex.FormatHierarchy(msg, true, true));
        }
Example #3
0
 public static void WriteLine(Exception ex, string fmt, params object[] args)
 {
     var msg = fmt.Fmt(args);
     Trace.WriteLine(ex.FormatHierarchy(msg, true, true));
 }
Example #4
0
 public static void WriteLine(Exception ex)
 {
     Trace.WriteLine(ex.FormatHierarchy(true, true));
 }
Example #5
0
File: StdLog.cs Project: Kidify/L4p
 ILogFile ILogFile.Error(Exception ex)
 {
     write_msg("E", ex.FormatHierarchy());
     return this;
 }