Пример #1
0
 public void Error(string message, Exception exception = null)
 {
     CurrentNancyContext.GetCurrentContext().Trace.TraceLog.WriteLog((sb) => sb.AppendLine(message));
     log.Error(message, exception);
 }
Пример #2
0
 public void Debug(string message)
 {
     CurrentNancyContext.GetCurrentContext().Trace.TraceLog.WriteLog((sb) => sb.AppendLine(message));
     log.Debug(message);
 }