Shopware 6: Phpstorm + Ideolog

Shopware writes a ton of log messages. That is great if you’re looking for something, as you can be quite sure that it’s in there – somewhere.

But getting an overview and finding the right error message in 100 lines of log per request can be tricky, so highlighting helps.

Today I configured Ideolog to highlight *.log files with the shopware log format. There is no way to add microseconds and I didn’t get milliseconds to work either – until I restarted PHPstorm. So I guess you can have microseconds as well, but for me, it works fine without them:

Message pattern^[(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}).\d{6}+\d{2}:\d{2}]\s+(\w+).(\w+):\s+(.*)$
Message start pattern^[
Time formatyyyy-MM-dd'T'HH:mm:ss
Time capture group1
Severity capture group3
Category capture group2

And a blogpost about Symfony format recommended to add a Severity pattern with this nice format:


Anyway, that does the trick.

If you have another working setup, feel free to leave a comment!

Kommentar verfassen