Nexus API Reference

Level : int
in package

Tags
psalm-api

PSR-3 log levels as an int-backed enum so they can be ordered for threshold filtering. The integer ordering matches RFC 5424 severity: Emergency is the highest (8), Debug the lowest (1). A record at level X is recorded when X >= the logger's configured minimum.

Table of Contents

Cases

Alert  = 7
Critical  = 6
Debug  = 1
Emergency  = 8
Error  = 5
Info  = 2
Notice  = 3
Warning  = 4

Methods

fromPsr3()  : self
isAtLeast()  : bool
toPsr3()  : string

Cases

Methods

fromPsr3()

public static fromPsr3(string $level) : self
Parameters
$level : string
Return values
self

isAtLeast()

public isAtLeast(self $other) : bool
Parameters
$other : self
Return values
bool

toPsr3()

public toPsr3() : string
Return values
string

        
On this page

Search results