Skip to content

How to use preferences?

Nedim edited this page Apr 14, 2024 · 1 revision

How to use preferences in LogJam?

Screenshot 2024-04-14 at 21 01 06

Processing Section:

This section is meant for the user to input or configure a processing pattern for log entries or debugging messages.

  • Regex (Regular Expression) Section: Regex Input: Here, a regex pattern is provided. Regex is a powerful tool used in programming for matching text patterns. This specific regex seems to be designed to extract timestamp and data from a log entry.

  • Regex drop down: Here user can select from few presets what regex to utilise when processing.

  • Test Line: This area user provides an example of a log entry that the regex might be applied to.

  • Preview Section: The preview shows the result of applying the regex pattern to the test line.

    ⚠️ Only one line will be shown in preview, even if your regex matches multiple lines.

Date Format Section:

Here, the user can specify the date format that is used in their logs. This helps the LogJam to properly parse and handle the timestamp data extracted by the regex.

Save Preference Button:

After configuring the regex and date format, users can save their preferences, which will be applied to future processing of logs or debugging output. User must restart sessions for changes to take effect.