JetBrains / ideolog

Interactive viewer for '.log' files.
MIT License
254 stars 55 forks source link

Log messed up after new lines get added #59

Open tflori opened 5 years ago

tflori commented 5 years ago

I've a custom log format that seems to work well when I restart the IDE. So I'm assuming that the log file format is working correct and the error comes from the plugin.

The log always ends with a new line. This might be the reason why it is not working when a new line get's added. When a new line get's added it highlights this line in the same color the old line was highlighted.

Here are my settings and a screenshot what is highlighted after some new log entries:

MessagePattern=^\[(.*)\] (.+?)\.([A-Z]+): (.*)$
MessageStartPattern=^\[
TimeFormat=yyyy-MM-dd HH:mm:ss
TimeCaptureGroup=1
SeverityCaptureGroup=3
CategoryCaptureGroup=2
ApplyPatternToAllLines=false

Screenshot_20190513_072031

The message before was an info line - that the reason the error is green (it should be red).

Closing and reopening the file does not help. I have to restart the IDE to work (and tbh. then it is less useful than it costs performance).