示例#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 );
 }