internal static void LogError(object obj, string format, params object[] args) { LogErrorEvent?.Invoke(string.Format(format, args), obj); }
/// <summary> /// Log an error event. /// </summary> /// <param name="message">log message</param> /// <param name="args">string format args</param> public override void LogError(string message, params object[] args) { LogErrorEvent logEvent = new LogErrorEvent(this.NormalizeMessage(message, args)); this.PublishLog(logEvent, logEvent.Message, "ERROR", stderr: true); }
protected virtual void OnLogError(LogEventArgs args) => LogErrorEvent?.Invoke(this, args);