예제 #1
0
 /// <summary>
 /// Writes a critical error system message to the Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="format">A composite format string.</param>
 /// <param name="args">An array of objects to write using format.</param>
 public void Critical(CommonLogType logType, string format, params object[] args)
 {
     if (MinLevel >= CommonLogLevel.Critical)
     {
         _loggers[logType].Fatal(FormatString(format, args));
     }
 }
예제 #2
0
 /// <summary>
 /// Writes an Critical error <see cref="Exception"/> to the  Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="ex">The <see cref="Exception"/> to write.</param>
 public void Critical(CommonLogType logType, Exception ex)
 {
     if (MinLevel >= CommonLogLevel.Critical)
     {
         _loggers[logType].Fatal(FormatException(ex));
     }
 }
예제 #3
0
 /// <summary>
 /// Writes a warning message to the Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="format">A composite format string.</param>
 /// <param name="args">An array of objects to write using format.</param>
 public void Warn(CommonLogType logType, string format, params object[] args)
 {
     if (MinLevel >= CommonLogLevel.Warning)
     {
         _loggers[logType].Warn(FormatString(format, args));
     }
 }
예제 #4
0
 /// <summary>
 /// Writes an informational message to the Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="format">A composite format string.</param>
 /// <param name="args">An array of objects to write using format.</param>
 public void Info(CommonLogType logType, string format, params object[] args)
 {
     if (MinLevel >= CommonLogLevel.Information)
     {
         _loggers[logType].Info(FormatString(format, args));
     }
 }
예제 #5
0
 /// <summary>
 /// Writes an critical <see cref="Exception"/> to the  Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="message">A message string.</param>
 /// <param name="ex">The <see cref="Exception"/> to write.</param>
 public void Critical(CommonLogType logType, string message, Exception ex)
 {
     Critical(logType, message);
     Critical(logType, ex);
 }
예제 #6
0
 /// <summary>
 /// Writes an error <see cref="Exception"/> to the Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="message">A message string.</param>
 /// <param name="ex">The <see cref="Exception"/> to write.</param>
 public void Error(CommonLogType logType, string message, Exception ex)
 {
     Error(logType, message);
     Error(logType, ex);
 }
예제 #7
0
 /// <summary>
 /// Writes an Error <see cref="Exception"/> to the Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="ex">The <see cref="Exception"/> to write.</param>
 public void Error(CommonLogType logType, Exception ex)
 {
     _loggers[logType].Error(FormatException(ex));
 }
예제 #8
0
 /// <summary>
 /// Writes an error message to the Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="format">A composite format string.</param>
 /// <param name="args">An array of objects to write using format.</param>
 public void Error(CommonLogType logType, string format, params object[] args)
 {
     _loggers[logType].Error(FormatString(format, args));
 }
예제 #9
0
 /// <summary>
 /// Writes an critical <see cref="Exception"/> to the  Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="message">A message string.</param>
 /// <param name="ex">The <see cref="Exception"/> to write.</param>
 public void Critical(CommonLogType logType, string message, Exception ex)
 {
   Critical(logType, message);
   Critical(logType, ex);
 }
예제 #10
0
 /// <summary>
 /// Writes a critical error system message to the Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="format">A composite format string.</param>
 /// <param name="args">An array of objects to write using format.</param>
 public void Critical(CommonLogType logType, string format, params object[] args)
 {
   if (MinLevel >= CommonLogLevel.Critical)
   {
     _loggers[logType].Fatal(FormatString(format, args));
   }
 }
예제 #11
0
 /// <summary>
 /// Writes an Critical error <see cref="Exception"/> to the  Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="ex">The <see cref="Exception"/> to write.</param>
 public void Critical(CommonLogType logType, Exception ex)
 {
   if (MinLevel >= CommonLogLevel.Critical)
   {
     _loggers[logType].Fatal(FormatException(ex));
   }
 }
예제 #12
0
 /// <summary>
 /// Writes an error <see cref="Exception"/> to the Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="message">A message string.</param>
 /// <param name="ex">The <see cref="Exception"/> to write.</param>
 public void Error(CommonLogType logType, string message, Exception ex)
 {
   Error(logType, message);
   Error(logType, ex);
 }
예제 #13
0
 /// <summary>
 /// Writes an Error <see cref="Exception"/> to the Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="ex">The <see cref="Exception"/> to write.</param>
 public void Error(CommonLogType logType, Exception ex)
 {
   _loggers[logType].Error(FormatException(ex));
 }
예제 #14
0
 /// <summary>
 /// Writes an error message to the Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="format">A composite format string.</param>
 /// <param name="args">An array of objects to write using format.</param>
 public void Error(CommonLogType logType, string format, params object[] args)
 {
   _loggers[logType].Error(FormatString(format, args));
 }
예제 #15
0
 /// <summary>
 /// Writes a warning message to the Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="format">A composite format string.</param>
 /// <param name="args">An array of objects to write using format.</param>
 public void Warn(CommonLogType logType, string format, params object[] args)
 {
   if (MinLevel >= CommonLogLevel.Warning)
   {
     _loggers[logType].Warn(FormatString(format, args));
   }
 }
예제 #16
0
 /// <summary>
 /// Writes an informational message to the Log
 /// </summary>
 /// <param name="logType">Defines log4net logger</param>
 /// <param name="format">A composite format string.</param>
 /// <param name="args">An array of objects to write using format.</param>
 public void Info(CommonLogType logType, string format, params object[] args)
 {
   if (MinLevel >= CommonLogLevel.Information)
   {
     _loggers[logType].Info(FormatString(format, args));
   }
 }