public void Console(uint level, Debug.ErrorLogLevel errorLogLevel, string format, params object[] items) { if (SaveData.Level >= level) { var str = string.Format(format, items); Console(level, str); LogError(errorLogLevel, str); } }
public void Console(uint level, IKeyed dev, Debug.ErrorLogLevel errorLogLevel, string format, params object[] items) { if (SaveData.Level >= level) { var str = string.Format("[{0}] {1}", dev.Key, string.Format(format, items)); Console(level, str); LogError(errorLogLevel, str); } }
public void LogError(Debug.ErrorLogLevel errorLogLevel, string str) { string msg = string.Format("App {0}:{1}", InitialParametersClass.ApplicationNumber, str); switch (errorLogLevel) { case Debug.ErrorLogLevel.Error: ErrorLog.Error(msg); break; case Debug.ErrorLogLevel.Warning: ErrorLog.Warn(msg); break; case Debug.ErrorLogLevel.Notice: ErrorLog.Notice(msg); break; } }