Adaptation of log frameworks. Since 2.2.1
, dubbo has built-in adaptation of log4j, slf4j, jcl, and jdk log frameworks.
Log framework runtime management, starting from 3.0.10
, dubbo-qos runtime management supports query log configuration and dynamically modify the used log framework and log level.
The log configuration modified by dubbo-qos is not stored persistently, and will become invalid after the application is restarted.
The logging output policy can be explicitly configured in the following ways
dubbo.properties
dubbo.xml
For custom extensions, please refer to Log Adapter Extension
Command: loggerInfo
example
output
Command: switchLogLevel {level}
level: ALL
, TRACE
, DEBUG
, INFO
, WARN
, ERROR
, OFF
example
output
Command: switchLogger {loggerAdapterName}
loggerAdapterName: slf4j
, jcl
, log4j
, jdk
, log4j2
example
output