In order to support the visual pattern recognition performed by human vision, it would be helpful to colorize the log message according to rules.
Rules could be...
The colors could...
Pinging @elastic/infrastructure-ui
++. For unknown messages, I'd have a simple base rule to color all field:value occurrences. Values can get a color depending on determined type.
Alternatively you could place the color on a smaller marker at the beginning of the line (like a colored side border or shape) or only on the timestamp.
Good idea, I have added symbol markers to the description.
That would be a great feature, it seems it was first suggested in 2013 or earlier.
@katrin-freihofner and I discussed this further and in first iteration, we decided to scope it down to simpler, pre-defined rules for known keywords. We will start highlighting log.level indicators { ERROR, WARN, DEBUG } with predefined colors to make it easy for users to spot these messages without needing to use highlight text box. So here is the proposed UX:
@katrin-freihofner feel free to chime in if I misrepresented or missed something.
@mukeshelastic It'd be nice to make the field and the list of matched keywords for each level configurable at the very least in the beginning. Different logging systems may have different wording for the same level of errors, e.g. [INF, info, information] or [Critical, Fatal, FTL, CTC, CRT]
Agree with the use case @kanadaj. If we are accounting for errors, warn statements in logs then ideally we should cover keywords that are typically used for errors and warns in different logging systems. And instead of hard-coding that in our UI, we could provide flexibility to users to specify the keywords and associated colors. We will ideate on UX to enable this further.
As I don't see this on our short-term roadmap I'm going to close this issue.
@katrin-freihofner are we closing out all issues not on the short-term roadmap? Where do we want to keep track the enhancement requests and ideas instead?
Let's reopen so we can still keep track but remove the design label!?
That sounds reasonable, thank you!