예제 #1
0
 internal static void LogError(object obj, string format, params object[] args)
 {
     LogErrorEvent?.Invoke(string.Format(format, args), obj);
 }
예제 #2
0
        /// <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);
        }
예제 #3
0
파일: IEventLogger.cs 프로젝트: jay-tux/jws
 protected virtual void OnLogError(LogEventArgs args) => LogErrorEvent?.Invoke(this, args);