C# Class NugetCracker.Utilities.ConsoleLogger

Inheritance: ILogger
Show file Open project: monoman/NugetCracker

Public Methods

Method Description
ConsoleLogger ( bool debug, bool info = true, bool warn = true ) : System
Debug ( Exception exception, string message = null ) : void
Debug ( string format ) : void
Error ( Exception exception, string message = null ) : void
Error ( string format ) : void
ErrorDetail ( string format ) : void
Info ( string format ) : void
Warn ( Exception exception, string message = null ) : void
Warn ( string format ) : void

Private Methods

Method Description
Format ( string format ) : string
FormatException ( Exception exception, string message ) : string
Log ( ConsoleColor foregroundColor, string prefix, Func emit ) : void
LogDebug ( Func emit ) : void
LogError ( Func emit ) : void
LogWarn ( Func emit ) : void

Method Details

ConsoleLogger() public method

public ConsoleLogger ( bool debug, bool info = true, bool warn = true ) : System
debug bool
info bool
warn bool
return System

Debug() public method

public Debug ( Exception exception, string message = null ) : void
exception System.Exception
message string
return void

Debug() public method

public Debug ( string format ) : void
format string
return void

Error() public method

public Error ( Exception exception, string message = null ) : void
exception System.Exception
message string
return void

Error() public method

public Error ( string format ) : void
format string
return void

ErrorDetail() public method

public ErrorDetail ( string format ) : void
format string
return void

Info() public method

public Info ( string format ) : void
format string
return void

Warn() public method

public Warn ( Exception exception, string message = null ) : void
exception System.Exception
message string
return void

Warn() public method

public Warn ( string format ) : void
format string
return void