Skip to content

Instantly share code, notes, and snippets.

@othyn
Last active April 2, 2022 02:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save othyn/fd2fb2e611de832398e42130f2f2143d to your computer and use it in GitHub Desktop.
Save othyn/fd2fb2e611de832398e42130f2f2143d to your computer and use it in GitHub Desktop.
RFC 5424 log levels for BenSampo's Laravel Enum package.
<?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