currentLogContext

The LogContext carried by the current coroutine, or an empty context if none is active.

This reads the kotlin.coroutines.CoroutineContext rather than any thread-local state, so it is correct on every platform and under any dispatcher - including multi-threaded dispatchers on Kotlin/Native, where ambient propagation is not possible.