Пример #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 );
 }