Define LOG_MDC_SCOPE

Define Documentation

LOG_MDC_SCOPE(key, value)

Places a KEY/VALUE pair in the Mapped Diagnostic Context (MDC) for the current thread, and restores previous KEY/VALUE on exit from a scope.

Parameters
  • key: Unique key.

  • value: String value.