public static void Debug(object o, Exception e) { string s = e.Message + e.InnerException; if (null != LogsDebugEvent) LogsDebugEvent(o, new LogEventArgs(LogLevel.Debug, DateTime.Now, EscapeNonPrintables(s))); }