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 Log(string message) { mainForm.Log(message); }