nodetool setlogginglevel
Set the log level for a service.
Set the log level for a service.
Synopsis
nodetool <options> setlogginglevel -- < class_qualifier > < level >options are:
- ( -h | --host ) <host name> | <ip address>
- ( -p | --port ) <port number>
- ( -pw | --password ) <password>
- ( -u | --username ) <user name>
- ( -pwf <passwordFilePath | --password-file <passwordFilePath> )
- -- separates an option and argument that could be mistaken for a option.
- class_qualifier is the logger class qualifier, a fully qualified domain name, such as org.apache.cassandra.service.StorageProxy.
- level is the logging level, for example DEBUG.
Description
You can use this command to set logging levels for services instead of modifying the
logback-text.xml file. The following values are valid for the logger class qualifier:
- org.apache.cassandra
- org.apache.cassandra.db
- org.apache.cassandra.service.StorageProxy
The possible log levels are:
- ALL
- TRACE
- DEBUG
- INFO
- WARN
- ERROR
- OFF
If both class qualifier and level arguments to the command are empty or null, the command resets logging to the initial configuration.
Example
This command sets the StorageProxy service to debug level.
nodetool setlogginglevel org.apache.cassandra.service.StorageProxy DEBUG