ResponsePropagatorFactory
in package
uses
LogsMessagesTrait
Tags
Table of Contents
Methods
- create() : ResponsePropagatorInterface
- logDebug() : void
- logError() : void
- logInfo() : void
- logNotice() : void
- logWarning() : void
- buildResponsePropagator() : ResponsePropagatorInterface
- buildResponsePropagators() : array<int, ResponsePropagatorInterface>
- 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() : ResponsePropagatorInterface
Return values
ResponsePropagatorInterfacelogDebug()
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> = []
buildResponsePropagator()
private
buildResponsePropagator(string $name) : ResponsePropagatorInterface
Parameters
- $name : string
Return values
ResponsePropagatorInterfacebuildResponsePropagators()
private
buildResponsePropagators(array<string|int, mixed> $names) : array<int, ResponsePropagatorInterface>
Parameters
- $names : array<string|int, mixed>
Return values
array<int, ResponsePropagatorInterface>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