Package-level declarations

Functions

Link copied to clipboard
inline suspend fun <T> withLoggingContextAsync(vararg pair: Pair<String, String?>, restorePrevious: Boolean = true, crossinline body: suspend () -> T): T

Use a varying number of pairs in an asynchronous MDC context. Example:

inline suspend fun <T> withLoggingContextAsync(pair: Pair<String, String?>, restorePrevious: Boolean = true, crossinline body: suspend () -> T): T

Use a pair in an asynchronous MDC context. Example:

inline suspend fun <T> withLoggingContextAsync(map: Map<String, String?>, restorePrevious: Boolean = true, crossinline body: suspend () -> T): T

Use a map in an asynchronous MDC context. Example: