Severity : int
Cases
- DEBUG = 5
- Diagnostic information for development; OTEL severity 5-8.
- ERROR = 17
- An error the application survives; OTEL severity 17-20.
- FATAL = 21
- An error that will likely stop the application; OTEL severity 21-24.
- INFO = 9
- Normal operational information; OTEL severity 9-12.
- TRACE = 1
- Finest-grained diagnostics; OTEL severity 1-4.
- WARN = 13
- A potentially harmful situation that does not stop the application; OTEL severity 13-16.
Methods
- isAtLeast() : bool
- Check if this severity is at least as severe as another.
- name() : string
- Get the severity name as a string.
Cases
DEBUG
Diagnostic information for development; OTEL severity 5-8.
ERROR
An error the application survives; OTEL severity 17-20.
FATAL
An error that will likely stop the application; OTEL severity 21-24.
INFO
Normal operational information; OTEL severity 9-12.
TRACE
Finest-grained diagnostics; OTEL severity 1-4.
WARN
A potentially harmful situation that does not stop the application; OTEL severity 13-16.
Methods
isAtLeast()
Check if this severity is at least as severe as another.
public
isAtLeast(Severity $other) : bool
This is useful for filtering logs by minimum severity level.
Parameters
- $other : Severity
-
The severity to compare against
Return values
bool —True if this severity is greater than or equal to $other
name()
Get the severity name as a string.
public
name() : string
Return values
string —The severity level name (TRACE, DEBUG, INFO, WARN, ERROR, FATAL)