-
-
Notifications
You must be signed in to change notification settings - Fork 384
Expand file tree
/
Copy pathlaravel_log.json
More file actions
38 lines (38 loc) · 1.15 KB
/
laravel_log.json
File metadata and controls
38 lines (38 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
"laravel_log": {
"title": "Laravel",
"description": "Laravel log format",
"url": [
"https://laravel.com/docs/12.x/logging"
],
"regex": {
"std": {
"pattern": "^\\[(?<timestamp>[\\d\\-:\\s]+)\\]\\s(?<env>\\w+)\\.(?<level>DEBUG|INFO|NOTICE|WARNING|ERROR|CRITICAL|ALERT|EMERGENCY):\\s(?<body>.*?)(?:\\s(?<context>\\{.*\\}|\\[.*\\])\\s*)?$"
}
},
"value": {
"context": {
"kind": "json"
},
"env": {
"kind": "string",
"identifier": true
},
"level": {
"kind": "string"
},
"timestamp": {
"kind": "string"
}
},
"sample": [
{
"line": "[2025-08-31 06:49:00] local.INFO: User logged in. {\"user_id\": 123}"
},
{
"line": "[2025-08-31 12:34:56] local.ERROR: Something bad happened {\"user_id\":123,\"ip\":\"127.0.0.1\"}"
}
]
}
}