SeverityMapper
Read onlyYes
FinalYes
Methods
- __construct() : mixed
- defaultMapping() : array<string, Severity>
- map() : Severity
Methods
__construct()
public
__construct([null|array<string, Severity> $customMapping = null ]) : mixed
Parameters
- $customMapping : null|array<string, Severity> = null
-
Optional custom mapping (PSR-3 LogLevel string => Telemetry Severity)
defaultMapping()
public
static defaultMapping() : array<string, Severity>
Return values
array<string, Severity>map()
public
map(string|Stringable $level) : Severity
Parameters
- $level : string|Stringable