JetBrains / ideolog

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

Parsing does not work for idea.log #133

Open rillig opened 2 years ago

rillig commented 2 years ago

As a software developer, I regularly have some log files containing references to other files and Java stack traces. I'd like to have an editor "language" that allows me to click on these references to allow navigation.

Examples for such references are:

I'd like to be able to have all these in a text file that is editable at the same time, allowing me to make remarks between the log messages.

In the default installation of IntelliJ, .log files are already colored, but references do not work. IntelliJ suggests to enable the Ideolog plugin for these files, but when I do that, there is no highlighting anymore, which makes the situation look worse than before, even though the Ideolog settings have a checkbox named "Highlight links and code references in log".

I took a typical idea.log file as an example and appended a Java thread dump to it, expecting that it would be highlighted. The built-in Ideolog log formats didn't recognize the following line due to the space before the '992017':

2022-02-22 11:03:15,814 [ 992017][DefaultDispatcher-worker-2]   INFO -                         STDOUT - Keep running Project opening