Skip to content

Commit 9ea7625

Browse files
authored
Merge pull request #1725 from coyaSONG/fix/1724-laravel-hyphenated-channels
[laravel_log] support hyphenated channels
2 parents 26dbdfc + b225a77 commit 9ea7625

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/formats/laravel_log.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"regex": {
1010
"std": {
11-
"pattern": "^\\[(?<timestamp>[\\d\\-:\\s]+)\\]\\s(?<env>\\w+)\\.(?<level>DEBUG|INFO|NOTICE|WARNING|ERROR|CRITICAL|ALERT|EMERGENCY):\\s(?<body>.*?)(?:\\s(?<context>\\{.*\\}|\\[.*\\])\\s*)?$"
11+
"pattern": "^\\[(?<timestamp>[\\d\\-:\\s]+)\\]\\s(?<env>[\\w-]+)\\.(?<level>DEBUG|INFO|NOTICE|WARNING|ERROR|CRITICAL|ALERT|EMERGENCY):\\s(?<body>.*?)(?:\\s(?<context>\\{.*\\}|\\[.*\\])\\s*)?$"
1212
}
1313
},
1414
"value": {
@@ -32,6 +32,9 @@
3232
},
3333
{
3434
"line": "[2025-08-31 12:34:56] local.ERROR: Something bad happened {\"user_id\":123,\"ip\":\"127.0.0.1\"}"
35+
},
36+
{
37+
"line": "[2026-07-16 10:17:45] payment-systems.ERROR: Failed to process payment"
3538
}
3639
]
3740
}

0 commit comments

Comments
 (0)