Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tailviewer should apply better heuristics to guestimate the log level of a log entry #360

Open
Kittyfisto opened this issue Sep 13, 2022 · 0 comments

Comments

@Kittyfisto
Copy link
Owner

Current behaviour

Tailviewer applies heuristics to guess the log level of a log entry by searching for very specific strings, namely those that fit the log levels written by log4net (which is the logging framework of choice I use of the time). This is beneficial for myself, but not really beneficial for everyone else that happens to use a different logging framework which happens to use different phrases for the same (or similar) log levels.

At the moment, log levels are only matched if the phrases "FATAL", "ERROR", "WARN", "INFO", "DEBUG" or "TRACE" are found. Any other casing or similar phrases are not matched (for example Error is not detected as error, as mentioned here #350).

Expected behaviour

Tailviewer should, by default, recognize log levels written by many log frameworks, not just log4net. This should at least include the log frameworks that were requested in other issues / discussions, but shouldn't be limited to just those. Obviously there are going to be cases where any heuristic couldn't reasonable make a decision, but it most certainly can be extended to include more than just the limited scope right now.

The following (non exhaustive) list of frameworks should be supported too (where sensible):

Steps to reproduce the problem

Open any log file which uses non capital-letter log levels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant