コード例 #1
0
        protected void WriteLog( LogEntry entry )
        {
            if ( PipedLogger != null )
            PipedLogger.WriteLog( entry );

              using ( var writer = GetWriter( entry ) )
              {
            writer.Write( entry );
              }
        }
コード例 #2
0
 protected override TextWriter GetTextWriter( LogEntry entry )
 {
     return GetWriter( _filepath );
 }
コード例 #3
0
 protected override TextWriter GetTextWriter( LogEntry entry )
 {
     return Console.Out;
 }
コード例 #4
0
 public void Write( LogEntry entry )
 {
     _writer.WriteLine( entry.Message );
 }
コード例 #5
0
 protected ILogWriter GetWriter( LogEntry entry )
 {
     return new TextLogWriter( GetTextWriter( entry ) );
 }
コード例 #6
0
 protected abstract TextWriter GetTextWriter( LogEntry entry );
コード例 #7
0
 void ILogger.WriteLog( LogEntry entry )
 {
     WriteLog( entry );
 }