C# Class ErrorProne.NET.Cli.CustomLogger

Very simple (and even naive) logger.
ファイルを表示 Open project: SergeyTeplyakov/ErrorProne.NET Class Usage Examples

Public Methods

Method Description
Configure ( string logFileName, bool fileLoggerEnabled ) : void
LogDiagnostics ( Microsoft.CodeAnalysis.Project project, ImmutableArray diagnostics ) : void
PrintStatistics ( List diagnostics, ImmutableArray analyzers ) : void
WriteCaption ( string text ) : void
WriteError ( string text ) : void
WriteInfo ( string text ) : void
WriteLine ( string text, ConsoleColor color ) : void
WriteWarning ( string text ) : void

Private Methods

Method Description
CreateCaption ( string text ) : string
WriteFile ( string message ) : void

Method Details

Configure() public static method

public static Configure ( string logFileName, bool fileLoggerEnabled ) : void
logFileName string
fileLoggerEnabled bool
return void

LogDiagnostics() public static method

public static LogDiagnostics ( Microsoft.CodeAnalysis.Project project, ImmutableArray diagnostics ) : void
project Microsoft.CodeAnalysis.Project
diagnostics ImmutableArray
return void

PrintStatistics() public static method

public static PrintStatistics ( List diagnostics, ImmutableArray analyzers ) : void
diagnostics List
analyzers ImmutableArray
return void

WriteCaption() public static method

public static WriteCaption ( string text ) : void
text string
return void

WriteError() public static method

public static WriteError ( string text ) : void
text string
return void

WriteInfo() public static method

public static WriteInfo ( string text ) : void
text string
return void

WriteLine() public static method

public static WriteLine ( string text, ConsoleColor color ) : void
text string
color ConsoleColor
return void

WriteWarning() public static method

public static WriteWarning ( string text ) : void
text string
return void