MannsBlog.Data Namespace
MannsBlog.Services Namespace
MannsBlog.Services.DataProviders Namespace
MannsBlog

EmailLogger..::..Log<(Of <(<'TState>)>)> Method

Writes a log entry.

Namespace:  MannsBlog.Logger
Assembly:  MannsBlog (in MannsBlog.exe)

Syntax


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

Type Parameters

TState
The type of the t state.

Parameters

logLevel
Type: LogLevel
Entry will be written on this level.
eventId
Type: EventId
Id of the event.
state
Type: TState
The entry to be written. Can be also an object.
exception
Type: Exception
The exception related to this entry.
formatter
Type: Func<(Of <(<'TState, Exception, String>)>)>
Function to create a string message of the state and exception.

Exceptions


ExceptionCondition
ArgumentNullExceptionformatter