logback / LOGBACK-1723 [Open] Allow customizing status messages (e.g. for structured logging)
============================== Here's what changed in this issue in the last few minutes. This issue has been created This issue is now assigned to you. View or comment on issue using this link https://jira.qos.ch/browse/LOGBACK-1723 ============================== Issue created ------------------------------ Jack created this issue on 31/Jan/23 11:38 AM Summary: Allow customizing status messages (e.g. for structured logging) Issue Type: Improvement Assignee: Logback dev list Components: logback-core Created: 31/Jan/23 11:38 AM Priority: Major Reporter: Jack Description: When using `debug=true` or assigning `OnConsoleStatusListener` there is no way to customize the output of status messages printed to console. With log shipping and centralized log aggregation it is often desired to use structured logging in order to make it easier to index and search/filter logs. For example I would like to see status messages formatted in logfmt format (key="value") as that's the format I choose for application logs. Currently everything is hardcoded in StatusPrinter. Maybe some refactor can be done to have an `AbstractStatusPrinter` and sub classes only need to generate the final log line. Then a custom StatusPrinter class could be provided either via logback.xml or via system property. ============================== This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59) _______________________________________________ logback-dev mailing list logback-dev@qos.ch https://mailman.qos.ch/cgi-bin/mailman/listinfo/logback-dev