Type: New Feature
Affects Version/s: None
Fix Version/s: 2.0.0
Add the log level setting and reading mechanism, through which users can control the log content.
This mechanism provides the url interface,through which users can dynamically set the log level. Service restores the original log level after restart.
The format of the interface is as follows:
1. Read the log level. URL address is http: //HOST: PORT/admin/logLevel? Log = CLASS_NAME
2. Set the log level. URL address is http: //HOST: PORT/admin/logLevel? Log = CLASS_NAME & level = LOG_LEVEL
The above parameters include:
HOST: host name or ip address of sentry server.
PORT: port of sentry server.
CLASS_NAME: name of class whose log level is read or set.
LOG_LEVEL: the log level to be set.