Trace(Logger, LogEventId, Object?, ref Logger.TraceInterpolatedLogMessage) Method

Definition

Assembly XenoAtom.Logging.dll

Logs a message with Trace level.

public static void Trace(this Logger logger, LogEventId eventId, object? attachment, [InterpolatedStringHandlerArgument(new string[] { "eventId", "attachment", "logger" })] ref Logger.TraceInterpolatedLogMessage msg)

Parameters

logger
Logger

The logger instance.

eventId
LogEventId

The event identifier associated with the message.

attachment
Object

An optional attachment associated with the message.

msg
Logger.TraceInterpolatedLogMessage

The interpolated log message handler.