public void Error(string message, Exception exception = null) { CurrentNancyContext.GetCurrentContext().Trace.TraceLog.WriteLog((sb) => sb.AppendLine(message)); log.Error(message, exception); }
public void Debug(string message) { CurrentNancyContext.GetCurrentContext().Trace.TraceLog.WriteLog((sb) => sb.AppendLine(message)); log.Debug(message); }