Eventlog Application Alert in it's Severity Colour (#11660)

* Eventlog Application Alert in it's Severity Colour

* use 'use'

* enums

* enum key list

* typo fix
This commit is contained in:
SourceDoctor
2020-06-08 10:56:45 +02:00
committed by GitHub
parent ea2928babd
commit 125ecb4bde
2 changed files with 23 additions and 3 deletions

View File

@@ -33,4 +33,12 @@ abstract class Alert
const NOTICE = 3;
const WARNING = 4;
const ERROR = 5;
const SEVERITIES = ['unknown' => self::UNKNOWN,
'ok' => self::OK,
'info' => self::INFO,
'notice' => self::NOTICE,
'warning' => self::WARNING,
'error' => self::ERROR,
];
}