C# 클래스 BudgetAnalyser.Engine.NullLogger

A null logger for use with classes that require an instance of a logger but the usage doesn't require creating a log file.
상속: ILogger
파일 보기 프로젝트 열기: Benrnz/BudgetAnalyser

공개 메소드들

메소드 설명
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.

메소드 상세

Format() 공개 메소드

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
리턴 string

LogAlways() 공개 메소드

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

LogError() 공개 메소드

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
리턴 void

LogError() 공개 메소드

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

LogInfo() 공개 메소드

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

LogWarning() 공개 메소드

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