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