Example #1
0
 public ElmahLogWriter(ErrorLog log, ElmahLogLevels logLevels)
 {
     _log       = log;
     _logLevels = logLevels ?? new ElmahLogLevels()
     {
         IsDebugEnabled = true,
         IsErrorEnabled = true,
         IsFatalEnabled = true,
         IsInfoEnabled  = true,
         IsWarnEnabled  = true
     };
 }
Example #2
0
 public ElmahLogWriter(ErrorLog log, ElmahLogLevels logLevels)
 {
     _log = log;
     _logLevels = logLevels ?? new ElmahLogLevels()
     {
         IsDebugEnabled = true,
         IsErrorEnabled = true,
         IsFatalEnabled = true,
         IsInfoEnabled = true,
         IsWarnEnabled = true
     };
 }
Example #3
0
 public ElmahLogWriter(ElmahLogLevels logLevels)
     : this(ErrorLog.GetDefault(null), logLevels)
 {
 }
 public ElmahHostLoggerConfigurator(ElmahLogLevels logLevels)
 {
     _logLevels = logLevels;
 }
 public static void Use(ElmahLogLevels logLevels = null)
 {
     HostLogger.UseLogger(new ElmahHostLoggerConfigurator(logLevels));
 }
 private ElmahLogWriterFactory(ElmahLogLevels logLevels)
 {
     _logLevels = logLevels;
 }
Example #7
0
 public ElmahLogWriter(ElmahLogLevels logLevels)
     : this(ErrorLog.GetDefault(null), logLevels)
 { }
 public ElmahHostLoggerConfigurator(ElmahLogLevels logLevels)
 {
     _logLevels = logLevels;
 }
 public static void Use(ElmahLogLevels logLevels = null)
 {
     HostLogger.UseLogger(new ElmahHostLoggerConfigurator(logLevels));
 }
Example #10
0
 private ElmahLogWriterFactory(ElmahLogLevels logLevels)
 {
     _logLevels = logLevels;
 }