DokanNet.Logging.Logger Class Reference
Handle log messages with callbacks More...
Inheritance diagram for DokanNet.Logging.Logger:
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
|
inline |
Initializes a new instance of the Logger class.
- Parameters
-
debug An Action<T> that are called when a debug log message are arriving. info An Action<T> that are called when a information log message are arriving warn An Action<T> that are called when a warning log message are arriving error An Action<T> that are called when a error log message are arriving fatal An 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