DiagnosticsLoggerLogTState Method
Writes a log entry.
Namespace: Gemstone.DiagnosticsAssembly: Gemstone.Diagnostics (in Gemstone.Diagnostics.dll) Version: 1.0.128 -- Release Build+d9d157c80da59365061f9bf4a5d1ecd0f0496e1b
public void Log<TState>(
LogLevel logLevel,
EventId eventId,
TState state,
Exception? exception,
Func<TState, Exception?, string> formatter
)
Public Sub Log(Of TState) (
logLevel As LogLevel,
eventId As EventId,
state As TState,
exception As Exception,
formatter As Func(Of TState, Exception, String)
)
public:
generic<typename TState>
virtual void Log(
LogLevel logLevel,
EventId eventId,
TState state,
Exception^ exception,
Func<TState, Exception^, String^>^ formatter
) sealed
JavaScript does not support generic types or methods.
- 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.
- TState
- The type of the object to be written.
ILoggerLogTState(LogLevel, EventId, TState, Exception, FuncTState, Exception, String)