public void Error(string format, params object[] args) { Log.ErrorFormat(format, args); var logArgs = new SharpStarLogEventArgs(LogType.Error, String.Format(format, args)); if (AllLogOutput != null) { AllLogOutput(this, logArgs); } if (LogOutput != null) { LogOutput(this, logArgs); } }
public void Debug(string format, params object[] args) { if (SharpStarMain.Instance.Config.ConfigFile.ShowDebug) { Log.DebugFormat(format, args); } var logArgs = new SharpStarLogEventArgs(LogType.Debug, String.Format(format, args)); if (AllLogOutput != null) { AllLogOutput(this, logArgs); } if (LogOutput != null) { LogOutput(this, logArgs); } }