JetBrains / ideolog

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

Better highlighting #166

Closed ArtemKar123 closed 7 months ago

ArtemKar123 commented 7 months ago

Features

This PR adds two fields to highlighting settings:

  1. Capture group — now you can choose a specific capture group to be matched before applying regexp and highlighting. Leave 0 to match all groups.
  2. Format — you can choose a specific parsing format for the highlighting. Leave Any to match all formats. telegram-cloud-photo-size-2-5433870560384898882-x

Motivation

Previously highlighting would highlight anything matching the pattern, that would lead to issues like this one. Here we use the default Error pattern and it works ok with IDEA format, but leads to somewhat strange in a custom one: telegram-cloud-photo-size-2-5433870560384898868-y

How it works now

telegram-cloud-photo-size-2-5433870560384898882-x telegram-cloud-photo-size-2-5433870560384898880-x telegram-cloud-photo-size-2-5433870560384898879-y