Exemple #1
0
 public override ILOGGER Log(LEVEL level, string message, Exception ex = null)
 {
     return(this.Fluently(() => {
         var type = Mapping[level];
         ex
         .IsNull()
         .IfTrue(() => Diagnostics.Log(type, message))
         .IfFalse(() => Diagnostics.Log(type, ex, message));
         ;
     }));
 }
Exemple #2
0
 public override ILOGGER Log(LEVEL level, string message, Exception ex = null)
 {
     return this.Fluently(() => {
         var type = Mapping[level];
         ex
             .IsNull()
             .IfTrue(() => Diagnostics.Log(type, message))
             .IfFalse(() => Diagnostics.Log(type, ex, message));
         ;
     });
 }