I'd like to have syntax highlighting on log4j logs. They might look something like this, although the output formatting is very flexible:
Log4j has 6 built-in logging levels: TRACE, DEBUG, INFO, WARN, ERROR, and FATAL.
I'd like to have the whole line highlighted based on which of these keywords appears in the line.
From what I've concluded, the current method UE uses for highlighting isn't designed for this, but I'd love to be wrong.
I've tried best I can to trick the highlighting parser; using some the keywords as comments, disabling delimiters, using variable strings, faking the markers, etc, but can't come up with a good solution to this problem.
Any ideas?
Code: Select all
2009-04-13 13:49:52,101 FATAL [main/Monitor]: Service will be restarted, socket test result: Timeout: java.net.SocketTimeoutException: Read timed out
2009-04-13 13:49:52,101 INFO [main/Monitor]: Ending tests. Tests took 15187 milliseconds.
2009-04-13 13:49:52,101 INFO [main/Monitor]: Restarting service...
2009-04-13 13:49:52,101 ERROR [main/Monitor]: org.hyperic.sigar.win32.Win32Exception: The specified service does not exist as an installed service.
I'd like to have the whole line highlighted based on which of these keywords appears in the line.
From what I've concluded, the current method UE uses for highlighting isn't designed for this, but I'd love to be wrong.
I've tried best I can to trick the highlighting parser; using some the keywords as comments, disabling delimiters, using variable strings, faking the markers, etc, but can't come up with a good solution to this problem.
Any ideas?