Edit

Share via


FileLoggingOutput.Log<TState> Method

Definition

Logs a message.

public void Log<TState> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, Exception exception, Func<TState,Exception,string> formatter, string category);
member this.Log : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * 'State * Exception * Func<'State, Exception, string> * string -> unit
Public Sub Log(Of TState) (logLevel As LogLevel, eventId As EventId, state As TState, exception As Exception, formatter As Func(Of TState, Exception, String), category As String)

Type Parameters

TState

The type of state.

Parameters

logLevel
LogLevel

The log level.

eventId
EventId

The event identifier.

state
TState

The state.

exception
Exception

The exception.

formatter
Func<TState,Exception,String>

The formatter.

category
String

The category.

Applies to