C# Class BudgetAnalyser.Engine.DebugLogger

Inheritance: ILogger
ファイルを表示 Open project: Benrnz/BudgetAnalyser

Public Methods

Method Description
Format ( string formatTemplate ) : string

A custom string format method to avoid code translation and localisation warnings. The logging language is always English.

LogAlways ( string>.Func logEntryBuilder ) : void

Write a debug/diagnostic log entry regardless of the configured log level.

LogError ( Exception ex, string>.Func logEntryBuilder ) : void

Write a debug/diagnostic log entry if the configured log level is set to error.

LogError ( string>.Func logEntryBuilder ) : void

Write a debug/diagnostic log entry if the configured log level is set to error.

LogInfo ( string>.Func logEntryBuilder ) : void

Write a debug/diagnostic log entry if the configured log level is set to info.

LogWarning ( string>.Func logEntryBuilder ) : void

Write a debug/diagnostic log entry if the configured log level is set to warning.

Private Methods

Method Description
ConstructLogEntry ( string level, string>.Func logEntryBuilder ) : string

Method Details

Format() public method

A custom string format method to avoid code translation and localisation warnings. The logging language is always English.
public Format ( string formatTemplate ) : string
formatTemplate string
return string

LogAlways() public method

Write a debug/diagnostic log entry regardless of the configured log level.
public LogAlways ( string>.Func logEntryBuilder ) : void
logEntryBuilder string>.Func
return void

LogError() public method

Write a debug/diagnostic log entry if the configured log level is set to error.
public LogError ( Exception ex, string>.Func logEntryBuilder ) : void
ex System.Exception
logEntryBuilder string>.Func
return void

LogError() public method

Write a debug/diagnostic log entry if the configured log level is set to error.
public LogError ( string>.Func logEntryBuilder ) : void
logEntryBuilder string>.Func
return void

LogInfo() public method

Write a debug/diagnostic log entry if the configured log level is set to info.
public LogInfo ( string>.Func logEntryBuilder ) : void
logEntryBuilder string>.Func
return void

LogWarning() public method

Write a debug/diagnostic log entry if the configured log level is set to warning.
public LogWarning ( string>.Func logEntryBuilder ) : void
logEntryBuilder string>.Func
return void