Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 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);
     }
 }
Exemplo n.º 4
0
 /// <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);
     }
 }
Exemplo n.º 5
0
 /// <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);
     }
 }
Exemplo n.º 6
0
        }                                         //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);
            }
        }
Exemplo n.º 7
0
 /// <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);
     }
 }
Exemplo n.º 8
0
 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);
     }
 }
Exemplo n.º 9
0
 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);
     }
 }
Exemplo n.º 10
0
        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);
            //}
        }
Exemplo n.º 11
0
        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);
            //}
        }
Exemplo n.º 12
0
        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);
            //}
        }