Last active
April 2, 2022 02:26
-
-
Save othyn/fd2fb2e611de832398e42130f2f2143d to your computer and use it in GitHub Desktop.
RFC 5424 log levels for BenSampo's Laravel Enum package.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Enums; | |
use BenSampo\Enum\Enum; | |
/** | |
* @method static static Emergency() | |
* @method static static Alert() | |
* @method static static Critical() | |
* @method static static Error() | |
* @method static static Warning() | |
* @method static static Notice() | |
* @method static static Info() | |
* @method static static Debug() | |
*/ | |
final class LogLevel extends Enum | |
{ | |
const Emergency = 0; | |
const Alert = 1; | |
const Critical = 2; | |
const Error = 3; | |
const Warning = 4; | |
const Notice = 5; | |
const Info = 6; | |
const Debug = 7; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment