public override void Trace(string format, object arg) { if (this.TraceEnabled) { FormattingTuple ft = MessageFormatter.Format(format, arg); this.logger.Log(LogLevel.Trace, 0, ft.Message, ft.Exception, MessageFormatterFunc); } }
public override void Error(string format, object argA, object argB) { if (this.ErrorEnabled) { FormattingTuple ft = MessageFormatter.Format(format, argA, argB); this.logger.Log(LogLevel.Error, 0, ft.Message, ft.Exception, MessageFormatterFunc); } }
public override void Error(string format, params object[] arguments) { if (this.ErrorEnabled) { FormattingTuple ft = MessageFormatter.ArrayFormat(format, arguments); this.logger.Log(LogLevel.Error, 0, ft.Message, ft.Exception, MessageFormatterFunc); } }
/// <summary> /// Log a message at level TRACE according to the specified format and /// arguments. /// <p> /// This form avoids superfluous object creation when the logger is disabled /// for level TRACE. /// </p> /// </summary> /// <param name="format">the format string</param> /// <param name="argA">the first argument</param> /// <param name="argB">the second argument</param> public override void Trace(string format, object argA, object argB) { if (this.TraceEnabled) { FormattingTuple ft = MessageFormatter.Format(format, argA, argB); DefaultEventSource.Log.Trace(this.Name, ft.Message, ft.Exception); } }
/// <summary> /// Log a message at level TRACE according to the specified format and /// arguments. /// <p> /// This form avoids superfluous object creation when the logger is disabled /// for level TRACE. /// </p> /// </summary> /// <param name="format">the format string</param> /// <param name="arguments">an array of arguments</param> public override void Trace(string format, params object[] arguments) { if (this.TraceEnabled) { FormattingTuple ft = MessageFormatter.ArrayFormat(format, arguments); DefaultEventSource.Log.Trace(this.Name, ft.Message, ft.Exception); } }
} //this.Logger.Log(LogLevel.Information, 0, msg, null, MessageFormatterFunc); public override void Info(string format, object arg) { if (this.InfoEnabled) { FormattingTuple ft = MessageFormatter.Format(format, arg); //this.Logger.Log(LogLevel.Information, 0, ft.Message, ft.Exception, MessageFormatterFunc); } }
/// <summary> /// Log a message at level ERROR according to the specified format and /// argument. /// <p> /// This form avoids superfluous object creation when the logger is disabled /// for level ERROR. /// </p> /// </summary> /// <param name="format">the format string</param> /// <param name="arg">the argument</param> public override void Error(string format, object arg) { if (this.ErrorEnabled) { FormattingTuple ft = MessageFormatter.Format(format, arg); DefaultEventSource.Log.Error(this.Name, ft.Message, ft.Exception); } }
public override void Debug(string format, params object[] arguments) { if (this.DebugEnabled) { FormattingTuple ft = MessageFormatter.ArrayFormat(format, arguments); //this.Logger.Log(LogLevel.Debug, 0, ft.Message, ft.Exception, MessageFormatterFunc); } }
public override void Debug(string format, object argA, object argB) { if (this.DebugEnabled) { FormattingTuple ft = MessageFormatter.Format(format, argA, argB); //this.Logger.Log(LogLevel.Debug, 0, ft.Message, ft.Exception, MessageFormatterFunc); } }
public override void Debug(string format, object arg) { //if (this.DebugEnabled) //{ FormattingTuple ft = MessageFormatter.Format(format, arg); this.logger.Log(LogLevel.Debug, 0, ft.Message, ft.Exception, MessageFormatterFunc); //} }
public override void Trace(string format, params object[] arguments) { //if (this.TraceEnabled) //{ FormattingTuple ft = MessageFormatter.ArrayFormat(format, arguments); this.logger.Log(LogLevel.Trace, 0, ft.Message, ft.Exception, MessageFormatterFunc); //} }
public override void Warn(string format, object argA, object argB) { //if (this.WarnEnabled) //{ FormattingTuple ft = MessageFormatter.Format(format, argA, argB); this.logger.Log(LogLevel.Warning, 0, ft.Message, ft.Exception, MessageFormatterFunc); //} }