MDC
in package
This class hides and serves as a substitute for the underlying logging system's MDC implementation.
Tags
Table of Contents
- $mdcAdapter : MDCAdapter
- clear() : mixed
- get() : string
- getCopyOfContextMap() : array<string|int, mixed>|null
- getMDCAdapter() : MDCAdapter
- init() : mixed
- put() : mixed
- remove() : mixed
- setContextMap() : mixed
- checkKey() : mixed
- checkMdcAdapter() : mixed
Properties
$mdcAdapter
protected
static MDCAdapter
$mdcAdapter
Methods
clear()
public
static clear() : mixed
Return values
mixed —get()
public
static get(string $key) : string
Parameters
- $key : string
Return values
string —getCopyOfContextMap()
public
static getCopyOfContextMap() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null —getMDCAdapter()
public
static getMDCAdapter() : MDCAdapter
Return values
MDCAdapter —init()
public
static init() : mixed
Return values
mixed —put()
public
static put(string $key, string $value) : mixed
Parameters
- $key : string
- $value : string
Return values
mixed —remove()
public
static remove(string $key) : mixed
Parameters
- $key : string
Return values
mixed —setContextMap()
public
static setContextMap(array<string|int, mixed> $contextMap) : mixed
Parameters
- $contextMap : array<string|int, mixed>
Return values
mixed —checkKey()
private
static checkKey(mixed $key) : mixed
Parameters
- $key : mixed
Return values
mixed —checkMdcAdapter()
private
static checkMdcAdapter() : mixed