예제 #1
0
파일: StdLog.cs 프로젝트: 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;
        }
예제 #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));
        }
예제 #3
0
파일: TraceLogger.cs 프로젝트: Kidify/L4p
 public static void WriteLine(Exception ex, string fmt, params object[] args)
 {
     var msg = fmt.Fmt(args);
     Trace.WriteLine(ex.FormatHierarchy(msg, true, true));
 }
예제 #4
0
파일: TraceLogger.cs 프로젝트: Kidify/L4p
 public static void WriteLine(Exception ex)
 {
     Trace.WriteLine(ex.FormatHierarchy(true, true));
 }
예제 #5
0
파일: StdLog.cs 프로젝트: Kidify/L4p
 ILogFile ILogFile.Error(Exception ex)
 {
     write_msg("E", ex.FormatHierarchy());
     return this;
 }