示例#1
0
 public string Translate(LogItem logItem)
 {
     return(logItem.Exception == null
         ? string.Empty
         : Environment.NewLine + logItem.Exception.StackTrace);
 }
示例#2
0
 public string Translate(LogItem logItem)
 {
     return(logItem.Exception == null
         ? string.Empty
         : "[" + logItem.Exception.GetType().ToTypeNameOnly() + "] " + logItem.Exception.Message);
 }
示例#3
0
 public string Translate(LogItem logItem)
 {
     return(logItem.LogLevel.ToString());
 }
示例#4
0
 public string Translate(LogItem logItem)
 {
     return(logItem.Thread);
 }
示例#5
0
 public string Translate(LogItem logItem)
 {
     return(logItem.TimeStamp.ToString());
 }