public void Log(string level, string message, Exception exception) { if (exception == null) { owner.Log(string.Format("{0} - {1}", level, message)); } else { owner.LogException(exception); } }
public static void LogException(Exception exception) { mainForm.LogException(exception); }