PHPStorm – Symfony log highlighting

To do, go into Settings -> Editor -> Log Highlighting (Ideolog)

Add new Log Format with the following config:

Name: Symfony
Message Pattern: ^\[(\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2})\]\s+(\w+).(\w+):\s+(.*)$
Message start pattern: ^\[
Time format: yyyy-MM-dd HH:mm:ss
Time capture group: 1
Severity capture group: 3
Category capture group: 2

special thanks to : https://locastic.com/blog/a-quick-way-to-browse-symfony-logs-with-phpstorm/

Views: 75