C# Class ZocBuild.Database.Logging.ConsoleLogger

Provides logging functionality to the standard output stream.
Inheritance: ILogger
Afficher le fichier Open project: Zocdoc/ZocBuild.Database

Méthodes publiques

Méthode Description
ConsoleLogger ( SeverityLevel minSeverity ) : System

Creates an instance of the logger with the given minimum severity level.

ConsoleLogger ( string header, SeverityLevel minSeverity ) : System

Creates an instance of the logger with the given minimum severity level.

LogMessageAsync ( string message, SeverityLevel severity ) : System.Threading.Tasks.Task

Logs a message.

Private Methods

Méthode Description
GetSeverityString ( SeverityLevel severity ) : string

Method Details

ConsoleLogger() public méthode

Creates an instance of the logger with the given minimum severity level.
public ConsoleLogger ( SeverityLevel minSeverity ) : System
minSeverity SeverityLevel A value indicating the minimum importance for messages to log.
Résultat System

ConsoleLogger() public méthode

Creates an instance of the logger with the given minimum severity level.
public ConsoleLogger ( string header, SeverityLevel minSeverity ) : System
header string Text to prefix each log message.
minSeverity SeverityLevel A value indicating the minimum importance for messages to log.
Résultat System

LogMessageAsync() public méthode

Logs a message.
public LogMessageAsync ( string message, SeverityLevel severity ) : System.Threading.Tasks.Task
message string The content of the message to log.
severity SeverityLevel A value indicating the importance of the message.
Résultat System.Threading.Tasks.Task