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