toLoggingEvent

abstract fun toLoggingEvent(level: Level, span: TracingEvent.Span?, message: String, arguments: Array<out Any?>, throwable: Throwable?): LoggingEvent

Converts the provided logging information into a LoggingEvent.

Return

A LoggingEvent representing the logging details.

Parameters

level

The logging level of the event.

span

An optional span that can be used for tracing the context.

message

The log message to be recorded.

arguments

Additional arguments to be included in the log event.

throwable

An optional throwable associated with the log event.