Re: [DISCUSS] Improve colored logging output
Sorry, not Logstash: Logback. On 19 October 2017 at 23:43, Matt Sickerwrote: > I really like the colour scheme that Spring Boot uses by default with > Logstash and Log4j2 and is what I tend to copy/paste into my own logging > config files. > > On 19 October 2017 at 16:33, Guillaume Nodet wrote: > >> 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 >> org.apache.karaf.log.core/4.2.0.SNAPSHOT >> >> 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: >> 'ld' >> >> I've currently reused the maven color scheme, so *debug* *info* *warning* >> *error*. >> >> 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... >> >> Cheers, >> Guillaume >> > > > > -- > Matt Sicker > -- Matt Sicker
Re: [DISCUSS] Improve colored logging output
I really like the colour scheme that Spring Boot uses by default with Logstash and Log4j2 and is what I tend to copy/paste into my own logging config files. On 19 October 2017 at 16:33, Guillaume Nodetwrote: > 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 > org.apache.karaf.log.core/4.2.0.SNAPSHOT > > 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: > 'ld' > > I've currently reused the maven color scheme, so *debug* *info* *warning* > *error*. > > 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... > > Cheers, > Guillaume > -- Matt Sicker
[DISCUSS] Improve colored logging output
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 org.apache.karaf.log.core/4.2.0.SNAPSHOT 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: 'ld' I've currently reused the maven color scheme, so *debug* *info* *warning* *error*. 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... Cheers, Guillaume