protected override void Process(LoggingEvent data, object state, CancellationToken token) { if (!_logger.Write(data)) { lock (_writer) { _writer.Write(data); } } }
public bool Write(Common.LoggingEvent data) { if (_isDisposed) { _thisClassSupportLogger.Error("Attempt to write LoggingEvent in Disposed state"); return(false); } if (!_logger.Write(data)) { lock (_writer) { _writer.Write(data); } } return(true); }