DokanNet.Logging.Logger Class Reference

Handle log messages with callbacks More...

Inheritance diagram for DokanNet.Logging.Logger:
DokanNet.Logging.ILogger

Public Member Functions

 Logger (Action< string, object[]> debug, Action< string, object[]> info, Action< string, object[]> warn, Action< string, object[]> error, Action< string, object[]> fatal)
 Initializes a new instance of the Logger class. More...
 
void Debug (string message, params object[] args)
 Log a debug message
 
void Info (string message, params object[] args)
 Log a info message
 
void Warn (string message, params object[] args)
 Log a warning message
 
void Error (string message, params object[] args)
 Log a error message
 
void Fatal (string message, params object[] args)
 Log a fatal error message
 

Public Attributes

bool DebugEnabled => _debug != null
 

Additional Inherited Members

- Properties inherited from DokanNet.Logging.ILogger
bool DebugEnabled [get]
 Gets a value indicating whether the logger wishes to receive debug messages. More...
 

Detailed Description

Handle log messages with callbacks

Constructor & Destructor Documentation

DokanNet.Logging.Logger.Logger ( Action< string, object[]>  debug,
Action< string, object[]>  info,
Action< string, object[]>  warn,
Action< string, object[]>  error,
Action< string, object[]>  fatal 
)
inline

Initializes a new instance of the Logger class.

Parameters
debugAn Action<T> that are called when a debug log message are arriving.
infoAn Action<T> that are called when a information log message are arriving
warnAn Action<T> that are called when a warning log message are arriving
errorAn Action<T> that are called when a error log message are arriving
fatalAn Action<T> that are called when a fatal error log message are arriving

The documentation for this class was generated from the following file:
  • Logger.cs