aldettinger commented on a change in pull request #574: URL: https://github.com/apache/camel-website/pull/574#discussion_r629900905
########## File path: content/blog/2021/05/new-camel-k-logging-features/index.md ########## @@ -0,0 +1,82 @@ +--- +title: "New Camel K Logging Features" +date: 2021-05-10 +authors: ["orpiske"] +categories: ["Features", "Camel K"] +preview: "New Camel K Logging Features" +summary: "New Camel K Logging Features for Camel K 1.5" +--- + + +As part of our continuous work to improve Camel K and improve its stability, features and +usefulness to our community, we recently worked on logging improvements for different +parts of Camel K and the integrations it generated. + +During the 1.5 development release we dedicated some time to review the logging capabilities +of Camel K. This version introduces a new [logging trait](https://camel.apache.org/camel-k/latest/traits/logging.html) that simplifies access to the logging configuration available on the runtime. + +## Colorized logs + +By default, Camel K will colorize the log output, making it easier to distinguish between +log levels, loggers, timestamps and the logging message. Naturally, we understand that not +everyone likes colorized logs. As such it's possible to turn it by using the logging.color +trait option. + +This is what it looks like: + +![Colorized Camel K Logs](colorized-camel-k-logs.png) + + +## Easier support for additional debug levels + +Additional log levels can be turned on or off at ease, using the logging.level trait. Users +can inform the minimum log level (i.e.: `TRACE`, `DEBUG`, `INFO`, etc) and control how much +information is presented by the logger. + + +## Custom logging format + +Leveraging the previous features, it's also possible to control the format of the message +displayed. Since the runtime leverages Camel Quarkus and, by extension, Quarkus itself, all +the logging format options are available to customize the log messages. Review comment: Ok, then maybe a small format example would have made it clearer for me. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org