log
Logs a message with the specified logging level and additional context.
Parameters
The logging level of the event.
An optional span that can be used for tracing the context.
Structured key-value dimensions attached to the event, kept separate from the message text (mirroring the tags carried by tracing spans and metering events).
The log message to be recorded.
Additional arguments to be included in the log event.
An optional throwable associated with the log event.
Logs a message with the specified logging level, additional context, and the source location of the call.
This overload is the target the log4k-compiler-plugin rewrites logging calls to: the plugin appends a compile-time SourceLocation so the emitted event carries accurate file/line/function information on every platform, without any runtime stack-walking. It can also be called directly when the call site is known by other means.
Parameters
The logging level of the event.
An optional span that can be used for tracing the context.
Structured key-value dimensions attached to the event, kept separate from the message text (mirroring the tags carried by tracing spans and metering events).
The log message to be recorded.
Additional arguments to be included in the log event.
An optional throwable associated with the log event.
The source location of the call, or null when unknown.