Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

Commit 03226e4

Browse files
author
Bruno Francisco
committed
Add log levels
- added log levels to `LogEvent` class
1 parent 915677d commit 03226e4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/Events/LogEvent.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,33 @@ class LogEvent extends BaseEvent implements Event
66
{
77
const EVENT_TYPE = "App\Models\Session\Event\EventLog";
88

9+
const LOG_LEVEL_EMERGENCY = 'emergency';
10+
11+
const LOG_LEVEL_ALERT = 'alert';
12+
13+
const LOG_LEVEL_CRITICAL = 'critical';
14+
15+
const LOG_LEVEL_ERROR = 'error';
16+
17+
const LOG_LEVEL_WARNING = 'warning';
18+
19+
const LOG_LEVEL_NOTICE = 'notice';
20+
21+
const LOG_LEVEL_INFORMATIONAL = 'informational';
22+
23+
const LOG_LEVEL_DEBUG = 'debug';
24+
25+
const LOG_LEVELS = [
26+
self::LOG_LEVEL_EMERGENCY,
27+
self::LOG_LEVEL_ALERT,
28+
self::LOG_LEVEL_CRITICAL,
29+
self::LOG_LEVEL_ERROR,
30+
self::LOG_LEVEL_WARNING,
31+
self::LOG_LEVEL_NOTICE,
32+
self::LOG_LEVEL_INFORMATIONAL,
33+
self::LOG_LEVEL_DEBUG,
34+
];
35+
936
public function create(string $sessionId, string $sessionSecret, array $data): void
1037
{
1138
if (! isset($data['level'])) {

0 commit comments

Comments
 (0)