public static void WriteLine(string text, LogCategory classification, params object[] args) { try { Console.WriteLine(string.Format(classification.Name + ": " + text, args)); if (OnLogEvent != null) { OnLogEvent(text, classification.Name, args); } } catch (Exception exception) { ErrorLog.WriteLine(exception); } }
public static void WriteLine(string text, LogCategory classification, params object[] args) { try { if (args != null) { int length = args.Length; } if (OnLogEvent != null) { OnLogEvent(text, classification.Name, args); } } catch (Exception exception) { ErrorLog.WriteLine(exception); } }