New Symfony Timestamp - Adjust Regex
Closed this issue · 1 comments
Surf-N-Code commented
It seems that Symfony has added the timezone offset to the timestamp at the beginning of each log line
[2020-03-05T12:57:24.827849+00:00] console.DEBUG:
Here is the adjusted regex:
^\[\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{6}\+\d{2}:\d{2}\]\s+([^.]+)\.([^:]+):\s+(.*)$
dszczer commented
Thank you for your information. This solution will be considered as an alternative regex (regarding to log format and Symfony version, that specific user has).