Table of Contents

Interface IMessageFormatter

Namespace
nanoFramework.Logging
Assembly
nanoFramework.Logging.dll

Provide the skeleton for a Message Formatter logger

public interface IMessageFormatter
Extension Methods

Methods

MessageFormatter(string, LogLevel, EventId, string, Exception)

The function to format the message

string MessageFormatter(string className, LogLevel logLevel, EventId eventId, string state, Exception exception)

Parameters

className string

The name of the logger

logLevel LogLevel

The log level

eventId EventId

The event id

state string

The message itself

exception Exception

The exception

Returns

string

A formatted string