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