Define LOG_MDC

Define Documentation

LOG_MDC(key, value)

Places a KEY/VALUE pair in the Mapped Diagnostic Context (MDC) for the current thread. The VALUE may then be included in log messages by using the following the X conversion character within a pattern layout as X{KEY}.

Parameters
  • key: Unique key.

  • value: String value.