C# Class Microsoft.DocAsCode.Common.ReplayLogListener

Replay log on flushing.
Inheritance: ILoggerListener
Exibir arquivo Open project: dotnet/docfx Class Usage Examples

Public Methods

Method Description
AddListener ( ILoggerListener listener ) : void
Dispose ( ) : void
Flush ( ) : void
ReplayLogListener ( LogLevel replayLevel = LogLevel.Warning ) : System
WriteLine ( ILogItem item ) : void

Private Methods

Method Description
GetBuildStatusFromLogLevel ( LogLevel level ) : BuildStatus
WriteFooter ( BuildStatus status ) : void
WriteHeader ( BuildStatus status ) : void
WriteLineCore ( ILogItem item ) : void
WriteToConsole ( string message, BuildStatus status ) : void
WriteToConsole ( string message, ConsoleColor color = ConsoleColor.White ) : void

Method Details

AddListener() public method

public AddListener ( ILoggerListener listener ) : void
listener ILoggerListener
return void

Dispose() public method

public Dispose ( ) : void
return void

Flush() public method

public Flush ( ) : void
return void

ReplayLogListener() public method

public ReplayLogListener ( LogLevel replayLevel = LogLevel.Warning ) : System
replayLevel LogLevel
return System

WriteLine() public method

public WriteLine ( ILogItem item ) : void
item ILogItem
return void