Table of Contents

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

ILoggerFactory

Methods

GetCurrentClassLogger(object)

Gets a logger with the name of the current class

public static ILogger GetCurrentClassLogger(this object currentClass)

Parameters

currentClass object

The class whose logger shall be retrieved

Returns

ILogger

A ILogger instance

GetLogger(string)

Gets a logger with the given name

public static ILogger GetLogger(string loggerName)

Parameters

loggerName string

Name of the logger

Returns

ILogger

A reference to a ILogger.