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