Table of Contents

Method Log

Namespace
Innova.Data.Logging
Assembly
Innova.Data.dll

Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, string>)

Writes a log message.

public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)

Parameters

logLevel LogLevel

The log level of the message.

eventId EventId

The event id of the message.

state TState

The state object.

exception Exception

The exception associated with the message.

formatter Func<TState, Exception, string>

A function that formats the state and exception into a log message.

Type Parameters

TState

The type of the state object.