PropagatorFactory
in package
uses
LogsMessagesTrait
Table of Contents
Methods
- create() : TextMapPropagatorInterface
- logDebug() : void
- logError() : void
- logInfo() : void
- logNotice() : void
- logWarning() : void
- buildPropagator() : TextMapPropagatorInterface
- buildPropagators() : array<int, TextMapPropagatorInterface>
- doLog() : void
- Logging is best effort: a failing log writer (for example an error handler that throws on `trigger_error`) must not break the code that is being observed.
- shouldLog() : bool
Methods
create()
public
create() : TextMapPropagatorInterface
Return values
TextMapPropagatorInterfacelogDebug()
protected
static logDebug(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
logError()
protected
static logError(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
logInfo()
protected
static logInfo(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
logNotice()
protected
static logNotice(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
logWarning()
protected
static logWarning(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
buildPropagator()
private
buildPropagator(string $name) : TextMapPropagatorInterface
Parameters
- $name : string
Return values
TextMapPropagatorInterfacebuildPropagators()
private
buildPropagators(array<string|int, mixed> $names) : array<int, TextMapPropagatorInterface>
Parameters
- $names : array<string|int, mixed>
Return values
array<int, TextMapPropagatorInterface>doLog()
Logging is best effort: a failing log writer (for example an error handler that throws on `trigger_error`) must not break the code that is being observed.
private
static doLog(string $level, string $message, array<string|int, mixed> $context) : void
Parameters
- $level : string
- $message : string
- $context : array<string|int, mixed>
shouldLog()
private
static shouldLog(string $level) : bool
Parameters
- $level : string