JetBrains / ideolog

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

Add Gradle Debug log format #71

Open rgoldberg opened 5 years ago

rgoldberg commented 5 years ago

Please add a Gradle Debug log format with values for the edit dialog in order like the following:

Gradle Debug
^(\d{2}:\d{2}:\d{2}.\d{3}) \[([^]]+)] \[([^]]+)] ?(.*)$
^\d
HH:mm:ss.SSS
1
2
3
unchecked

Also, please add a Lifecycle pattern for severity coloring like:

^\s*l(ifecycle)?\s*$
Highlight line
Foreground: 1998FF
Show on stripe: checked
Everything else: unchecked

In general, I'd advise adding a lot more common log formats to the plugin, as the benefit from adding each will greatly outweigh the cost / time of implementing it.

knah commented 5 years ago

Is the Gradle debug log format fixed, or can users change it? I generally agree that the plugin should support more things out of the box, but some log formats are user-specific, and it's generally nontrivial to find things that have a fixed format. The current default formats serve more as examples.

rgoldberg commented 5 years ago

This format is in addition to existing formats. Since they aren’t mutually exclusive, how would it hurt?

I would assume that you can change the log format for Gradle debug. But why not support what 99% of users will use, when it should only take a few lines of config code to add in the support? All these formats can be disabled, so it’s not like people are locked in to using it.