toggle menu
log4k
0.30.0
common
switch theme
search in API
log4k-coroutines
/
io.github.smyrgeorge.log4k.coroutines
/
LoggingContext
Logging
Context
class
LoggingContext
(
val
tags
:
Tags
=
emptyMap()
)
:
CoroutineContext.Element
Members
Constructors
Logging
Context
Link copied to clipboard
constructor
(
span
:
TracingEvent.Span
)
constructor
(
tags
:
Tags
,
span
:
TracingEvent.Span
)
constructor
(
tags
:
Tags
=
emptyMap()
)
Types
Builder
Link copied to clipboard
class
Builder
Companion
Link copied to clipboard
object
Companion
:
CoroutineContext.Key
<
LoggingContext
>
Span
Stack
Link copied to clipboard
class
SpanStack
Properties
key
Link copied to clipboard
open
override
val
key
:
CoroutineContext.Key
<
LoggingContext
>
spans
Link copied to clipboard
val
spans
:
LoggingContext.SpanStack
tags
Link copied to clipboard
val
tags
:
Tags
Functions
fold
Link copied to clipboard
open
override
fun
<
R
>
fold
(
initial
:
R
,
operation
:
(
R
,
CoroutineContext.Element
)
->
R
)
:
R
get
Link copied to clipboard
open
operator override
fun
<
E
:
CoroutineContext.Element
>
get
(
key
:
CoroutineContext.Key
<
E
>
)
:
E
?
minus
Key
Link copied to clipboard
open
override
fun
minusKey
(
key
:
CoroutineContext.Key
<
*
>
)
:
CoroutineContext
plus
Link copied to clipboard
open
operator
fun
plus
(
context
:
CoroutineContext
)
:
CoroutineContext
span
Link copied to clipboard
inline
fun
<
T
>
span
(
name
:
String
,
f
:
TracingEvent.Span.Local
.
(
)
->
T
)
:
T
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String