We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent add2eac commit 3619579Copy full SHA for 3619579
1 file changed
src/Controller/LogController.php
@@ -18,7 +18,8 @@
18
*/
19
class LogController
20
{
21
- private const LINE_MATCH = '/\[(?<date>.*)] (?<channel>\w*)\.(?<level>\w*):(?<message>.*)/m';
+ // https://regex101.com/r/bp4YYL/1
22
+ private const LINE_MATCH = '/\[(?<date>.*)] (?<channel>.*)\.(?<level>(DEBUG|INFO|NOTICE|WARNING|ERROR|CRITICAL|ALERT|EMERGENCY)):(?<message>.*)/m';
23
24
private string $logDir;
25
0 commit comments