Click or drag to resize

TestLoggerLogTState Method

Writes a log entry.

Namespace:  Neon.Diagnostics
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.14.0
Syntax
public void Log<TState>(
	LogLevel logLevel,
	EventId eventId,
	TState state,
	Exception e,
	Func<TState, Exception, string> formatter
)

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.
e
Type: SystemException

[Missing <param name="e"/> documentation for "M:Neon.Diagnostics.TestLogger.Log``1(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,``0,System.Exception,System.Func{``0,System.Exception,System.String})"]

formatter
Type: SystemFuncTState, 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

ILogger.Log``1(LogLevel, EventId, UMP, Exception, FuncUMP, Exception, String)
See Also