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
stringThe name of the logger
logLevel
LogLevelThe log level
eventId
EventIdThe event id
state
stringThe message itself
exception
ExceptionThe exception
Returns
- string
A formatted string