Changing Logging Levels
Changing logging levels using the log4j-server.properties file.
The default logging level is determined by the following line in the log4j-server.properties file:
log4j.rootLogger=INFO,stdout,R
To exert more fine-grained control over your logging, you can specify the logging level for specific categories. The categories usually (but not always) correspond to the package and class name of the code doing the logging. For example, the following setting logs DEBUG messages from all classes in the org.apache.cassandra.db package:
log4j.logger.org.apache.cassandra.db=DEBUG
In this example, DEBUG messages are logged specifically from the StorageProxy class in the org.apache.cassandra.service package:
log4j.logger.org.apache.cassandra.service.StorageProxy=DEBUG
To determine which category a particular message in the log belongs to, you change the following line:
log4j.appender.R.layout.ConversionPattern=%5p [%t] %d{ISO8601} %F (line %L) %m%n