Expand description

A Mapped Diagnostic Context (MDC) for Witchcraft loggers.

An MDC is a thread local map containing extra parameters. Witchcraft logging implementations should include the contents of the MDC in service logs.

Structs

An iterator over the entries in a Map.

A map of MDC entries.

A portable snapshot of the MDC.

Functions

Clears the contents of the MDC.

Inserts a new safe parameter into the MDC.

Inserts a new unsafe parameter into the MDC.

Removes the specified safe parameter from the MDC.

Removes the specified unsafe parameter from the MDC.

Overwrites the MDC with a snapshot, returning the previous state.

Takes a snapshot of the MDC.

Swaps the MDC with a snapshot in-place.