current

suspend fun current(): LoggingContext

Retrieves the current LoggingContext from the coroutine's context. If there is no LoggingContext present, it returns an empty context.

Return

The current LoggingContext if available, or an empty context if not.