Class LogDispatcher
This class contains static members that provide log support.
Inherited Members
Namespace: nanoFramework.Logging
Assembly: nanoFramework.Logging.dll
Syntax
public static class LogDispatcher
Properties
LoggerFactory
The default logger factory for the whole assembly. If this is null (the default), logging is disabled
Declaration
public static ILoggerFactory LoggerFactory { get; set; }
Property Value
Type | Description |
---|---|
ILoggerFactory |
Methods
GetCurrentClassLogger(object)
Gets a logger with the name of the current class
Declaration
public static ILogger GetCurrentClassLogger(this object currentClass)
Parameters
Type | Name | Description |
---|---|---|
object | currentClass | The class whose logger shall be retrieved |
Returns
Type | Description |
---|---|
ILogger | A ILogger instance |
GetLogger(string)
Gets a logger with the given name
Declaration
public static ILogger GetLogger(string loggerName)
Parameters
Type | Name | Description |
---|---|---|
string | loggerName | Name of the logger |
Returns
Type | Description |
---|---|
ILogger | A reference to a ILogger. |