 | NullLoggerLogTState Method |
Writes a log entry.
Namespace:
Neon.Diagnostics
Assembly:
Neon.Common (in Neon.Common.dll) Version: 2.14.0
Syntaxpublic void Log<TState>(
LogLevel logLevel,
EventId eventId,
TState state,
Exception e,
Func<TState, Exception, string> formatter
)
Public Sub Log(Of TState) (
logLevel As LogLevel,
eventId As EventId,
state As TState,
e As Exception,
formatter As Func(Of TState, Exception, String)
)
public:
generic<typename TState>
virtual void Log(
LogLevel logLevel,
EventId eventId,
TState state,
Exception^ e,
Func<TState, Exception^, String^>^ formatter
) sealed
abstract Log :
logLevel : LogLevel *
eventId : EventId *
state : 'TState *
e : Exception *
formatter : Func<'TState, Exception, string> -> unit
override Log :
logLevel : LogLevel *
eventId : EventId *
state : 'TState *
e : Exception *
formatter : Func<'TState, Exception, string> -> unit
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.NullLogger.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