Documentation

BasicMDCAdapter
in package
implements MDCAdapter

Basic MDC implementation, which can be used with logging systems that lack out-of-the-box MDC support.

Tags
author

Janos Szurovecz szjani@szjani.hu

Interfaces, Classes and Traits

MDCAdapter
This interface abstracts the service offered by various MDC implementations.

Table of Contents

$contextMap  : mixed
clear()  : mixed
get()  : string
getCopyOfContextMap()  : array<string|int, mixed>|null
put()  : mixed
remove()  : mixed
setContextMap()  : mixed

Properties

Methods

get()

public get(mixed $key) : string
Parameters
$key : mixed
Return values
string

getCopyOfContextMap()

public getCopyOfContextMap() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

put()

public put(mixed $key, mixed $value) : mixed
Parameters
$key : mixed
$value : mixed
Return values
mixed

remove()

public remove(mixed $key) : mixed
Parameters
$key : mixed
Return values
mixed

setContextMap()

public setContextMap(array<string|int, mixed> $contextMap) : mixed
Parameters
$contextMap : array<string|int, mixed>
Return values
mixed

Search results