Table of Contents

Interface ILogger

Namespace
Microsoft.Extensions.Logging
Assembly
nanoFramework.Logging.dll

Represents a type used to perform logging.

public interface ILogger
Extension Methods

Remarks

Aggregates most logging patterns to a single method.

Methods

IsEnabled(LogLevel)

Checks if the given logLevel is enabled.

bool IsEnabled(LogLevel logLevel)

Parameters

logLevel LogLevel

level to be checked.

Returns

bool

true if enabled.

Log(LogLevel, EventId, string, Exception, MethodInfo)

Writes a log entry.

void Log(LogLevel logLevel, EventId eventId, string state, Exception exception, MethodInfo format)

Parameters

logLevel LogLevel

Entry will be written on this level.

eventId EventId

Id of the event.

state string

The entry to be written.

exception Exception

The exception related to this entry.

format MethodInfo