You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2023/09/12 17:45:22 UTC

[activemq-artemis] branch main updated: ARTEMIS-4428 Expand default loggers configuration

This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new 2731299345 ARTEMIS-4428 Expand default loggers configuration
2731299345 is described below

commit 273129934514e0fabc5e42118c227a53ea57bbdc
Author: Domenico Francesco Bruscino <br...@apache.org>
AuthorDate: Tue Sep 12 18:26:51 2023 +0200

    ARTEMIS-4428 Expand default loggers configuration
---
 .../activemq/artemis/cli/commands/etc/log4j2.properties     | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/log4j2.properties b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/log4j2.properties
index 7780d8c7ff..e2ff0b2ea5 100644
--- a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/log4j2.properties
+++ b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/log4j2.properties
@@ -18,7 +18,9 @@
 # Monitor config file every X seconds for updates
 monitorInterval = 5
 
-rootLogger = INFO, console, log_file
+rootLogger.level = OFF
+rootLogger.appenderRef.console.ref = console
+rootLogger.appenderRef.log_file.ref = log_file
 
 logger.activemq.name=org.apache.activemq
 logger.activemq.level=INFO
@@ -38,16 +40,19 @@ logger.critical_analyzer.name=org.apache.activemq.artemis.utils.critical
 logger.critical_analyzer.level=INFO
 
 # Audit loggers: to enable change levels from OFF to INFO
-logger.audit_base = OFF, audit_log_file
 logger.audit_base.name = org.apache.activemq.audit.base
+logger.audit_base.level = OFF
+logger.audit_base.appenderRef.audit_log_file.ref = audit_log_file
 logger.audit_base.additivity = false
 
-logger.audit_resource = OFF, audit_log_file
 logger.audit_resource.name = org.apache.activemq.audit.resource
+logger.audit_resource.level = OFF
+logger.audit_resource.appenderRef.audit_log_file.ref = audit_log_file
 logger.audit_resource.additivity = false
 
-logger.audit_message = OFF, audit_log_file
 logger.audit_message.name = org.apache.activemq.audit.message
+logger.audit_message.level = OFF
+logger.audit_message.appenderRef.audit_log_file.ref = audit_log_file
 logger.audit_message.additivity = false
 
 # Jetty logger levels