DiagnosticsLoggerLogTState Method

Writes a log entry.

Definition

Namespace: Gemstone.Diagnostics
Assembly: Gemstone.Diagnostics (in Gemstone.Diagnostics.dll) Version: 1.0.147 -- Release Build+6d8205f6bef6d4bbdafae492b5ebb1e8ed76a73f
public void Log<TState>(
	LogLevel logLevel,
	EventId eventId,
	TState state,
	Exception? exception,
	Func<TState, Exception?, string> formatter
)

Parameters

logLevel  LogLevel
Entry will be written on this level.
eventId  EventId
Id of the event.
state  TState
The entry to be written. Can be also an object.
exception  Exception
The exception related to this entry.
formatter  FuncTState, Exception, String
Function to create a String message of the state and exception.

Type Parameters

TState
The type of the object to be written.

Implements

ILoggerLogTState(LogLevel, EventId, TState, Exception, FuncTState, Exception, String)

See Also