public static void Error(string msg) { if (!IsOutPutLog) { return; } LoggerWriter.LogError(msg); }
/// <summary> /// Error 级别的log /// </summary> /// <param name="ex"></param> /// <param name="title"></param> public static void Error(Exception ex, string title = "Error") { string errMsg = string.Concat(title, ex.ToString()); LoggerWriter.LogError(errMsg); }