/// <summary> /// Initializes a new instance of the <see cref="LogReceivedAdapter"/> class. /// </summary> /// <param name="items"></param> public LogReceivedAdapter(IList items) { this.items = items; this.handler = new LogReceivedEventHandler(this.LogLog_LogReceived); LogReceived += this.handler; }
public static void DisableInternalDebug(LogReceivedEventHandler eventHandler) { LogLog.InternalDebugging = false; LogLog.LogReceived -= eventHandler; var adoNetAppenders = LogManager.GetAllRepositories().SelectMany(e => e.GetAppenders()) .Where(a => a is AdoNetAppender).Cast <AdoNetAppender>(); foreach (var appender in adoNetAppenders) { appender.ErrorHandler = null; } }
/// <summary> /// /// </summary> /// <param name="items"></param> public LogReceivedAdapter(IList items) { this.items = items; handler = new LogReceivedEventHandler(LogLog_LogReceived); LogReceived += handler; }
public ErrorHandler(LogReceivedEventHandler eventHandler) { _eventHandler = eventHandler; }
/// <summary> /// /// </summary> /// <param name="items"></param> public LogReceivedAdapter(IList items) { this.items = items; handler = LogLog_LogReceived; LogReceived += handler; }