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
classNamestringThe name of the logger
logLevelLogLevelThe log level
eventIdEventIdThe event id
statestringThe message itself
exceptionExceptionThe exception
Returns
- string
A formatted string