C# Class NugetCracker.Utilities.ConsoleLogger

Inheritance: ILogger
Afficher le fichier Open project: monoman/NugetCracker

Méthodes publiques

Méthode 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

Méthode 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 méthode

public ConsoleLogger ( bool debug, bool info = true, bool warn = true ) : System
debug bool
info bool
warn bool
Résultat System

Debug() public méthode

public Debug ( Exception exception, string message = null ) : void
exception System.Exception
message string
Résultat void

Debug() public méthode

public Debug ( string format ) : void
format string
Résultat void

Error() public méthode

public Error ( Exception exception, string message = null ) : void
exception System.Exception
message string
Résultat void

Error() public méthode

public Error ( string format ) : void
format string
Résultat void

ErrorDetail() public méthode

public ErrorDetail ( string format ) : void
format string
Résultat void

Info() public méthode

public Info ( string format ) : void
format string
Résultat void

Warn() public méthode

public Warn ( Exception exception, string message = null ) : void
exception System.Exception
message string
Résultat void

Warn() public méthode

public Warn ( string format ) : void
format string
Résultat void