protected void WriteLog( LogEntry entry ) { if ( PipedLogger != null ) PipedLogger.WriteLog( entry ); using ( var writer = GetWriter( entry ) ) { writer.Write( entry ); } }
protected override TextWriter GetTextWriter( LogEntry entry ) { return GetWriter( _filepath ); }
protected override TextWriter GetTextWriter( LogEntry entry ) { return Console.Out; }
public void Write( LogEntry entry ) { _writer.WriteLine( entry.Message ); }
protected ILogWriter GetWriter( LogEntry entry ) { return new TextLogWriter( GetTextWriter( entry ) ); }
protected abstract TextWriter GetTextWriter( LogEntry entry );
void ILogger.WriteLog( LogEntry entry ) { WriteLog( entry ); }