JetBrains / ideolog

Interactive viewer for '.log' files.
MIT License
252 stars 54 forks source link

Log format not recognized after file cleanup #108

Closed mfilippov closed 6 months ago

mfilippov commented 3 years ago

When I cleanup log file I see "Log format not recognized" when new lines appear issue still there. Reopen file doesn't help. To fix I need enable disable pattern.

mfilippov commented 3 years ago

repro https://recordit.co/mvYb7fNV0H

emrzv commented 3 years ago

Sample log:

[08-Mar-2018 09:05:03 UTC] PHP Notice:  Trying to get property of non-object in /home/mysite/public_html/wp-includes/class-wp-query.php on line 3736
[08-Mar-2018 09:05:03 UTC] PHP Notice:  Trying to get property of non-object in /home/mysite/public_html/wp-includes/class-wp-query.php on line 3738
[08-Mar-2018 09:05:03 UTC] PHP Notice:  Trying to get property of non-object in /home/mysite/public_html/wp-includes/class-wp-query.php on line 3740
[08-Mar-2018 09:05:03 UTC] PHP Notice:  Trying to get property of non-object in /home/mysite/public_html/wp-includes/class-wp-query.php on line 3736
[08-Mar-2018 09:05:03 UTC] PHP Notice:  Trying to get property of non-object in /home/mysite/public_html/wp-includes/class-wp-query.php on line 3738
[08-Mar-2018 09:05:03 UTC] PHP Notice:  Trying to get property of non-object in /home/mysite/public_html/wp-includes/class-wp-query.php on line 3740
[08-Mar-2018 09:05:03 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/wp-includes/class-wp-query.php:3736) in /home/mysite/public_html/wp-includes/pluggable.php on line 1216

Message pattern: ^\[([^\]]+)\]\s+(PHP.*?)[.:](.*?)?(\sin\s)?(/.*?)?(\son\s)?(line.*)?$ Message pattern start: ^\[ Date format: dd-MMM-yyy HH:mm:ss Time capture group: 1 Category capture group: 2

ArtemKar123 commented 6 months ago

Fixed in #175. Will be released in the next version. Thanks for your feedback!