karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Nodet <gno...@apache.org>
Subject [DISCUSS] Improve colored logging output
Date Thu, 19 Oct 2017 21:33:01 GMT
I'm wondering about improving the colored logging output in both the
"log:display" command and when running "bin/karaf run".
I'm thinking about keeping the log file the way it is, but simplifying the
output on the console and improving the color a bit.

23:11:44.198 *INFO* [pool-14-thread-3] Registering commands for bundle

23:11:51.043 *ERROR* [Karaf local console user karaf] Exception caught
while executing command


23:15:19.481 *DEBUG* [Karaf local console user karaf] Executing command:

I've currently reused the maven color scheme, so *debug* *info* *warning*

The current behavior is that "bin/karaf run" is uncolored, while
"log:display" have fully colored lines, both having the same output as the
log file.  The problem with the log file pattern is that it oftens does not
fit in the screen, even with a large one.

If you have any thoughts, let me know...
I have the above code ready to commit, but I'm happy to change the scheme,
drop it, or whatever else...


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message