ARTEMIS-4492: update logging docs to match current config after ARTEMIS-4428
This commit is contained in:
parent
808272fc63
commit
7ccc4b3a8f
|
@ -98,7 +98,9 @@ The following is an example `log4j2.properties` for a client application, loggin
|
|||
# Monitor config file every X seconds for updates
|
||||
monitorInterval = 5
|
||||
|
||||
rootLogger = INFO, console, log_file
|
||||
rootLogger.level = INFO
|
||||
rootLogger.appenderRef.console.ref = console
|
||||
rootLogger.appenderRef.log_file.ref = log_file
|
||||
|
||||
logger.activemq.name=org.apache.activemq
|
||||
logger.activemq.level=INFO
|
||||
|
@ -144,16 +146,19 @@ These three audit loggers are disabled by default in the broker `log4j2.properti
|
|||
----
|
||||
...
|
||||
# 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
|
||||
...
|
||||
----
|
||||
|
@ -161,11 +166,11 @@ logger.audit_message.additivity = false
|
|||
To _enable_ the audit log change the level to `INFO`, like this:
|
||||
|
||||
----
|
||||
logger.audit_base = INFO, audit_log_file
|
||||
logger.audit_base.level = INFO
|
||||
...
|
||||
logger.audit_resource = INFO, audit_log_file
|
||||
logger.audit_resource.level = INFO
|
||||
...
|
||||
logger.audit_message = INFO, audit_log_file
|
||||
logger.audit_message.level = INFO
|
||||
----
|
||||
|
||||
The 3 audit loggers can be disable/enabled separately.
|
||||
|
|
Loading…
Reference in New Issue