You can configure the desired log verbosity for your Rootstock node installation according to your needs. More information can be found at: [Logback Project](https://logback.qos.ch/index.html). ## Requirements * RSK Node Installed * SSH Access * SuperUser Access (`sudo`) ### Where to find RSK log files Real time log: ```shell /var/log/rsk/rsk.log ``` Compressed logs: ```shell /var/log/rsk/rskj-YYYY-MM-DD.N.log.gz ``` ## Log level options When you configure your log level, all log items for that level and below get written to the log file. In the following table, the left column represents the the possible values you can set in your configuration. ![Log Levels](https://i.stack.imgur.com/7o9Kk.png) ## Setting your desired verbosity configuration You need to edit `logback.xml` file to set your desired level of verbosity. ```bash sudo vi /etc/rsk/logback.xml ``` This file allows you to configure different log levels for different parts of the application. ```xml ``` * Save your changes * RSK `logback.xml` config will watch and apply changes without restarting RSK Node. (The watcher can take up to 1 hour to notice the changes and reload the logging configuration) * RSK logs with default installation will rotate on daily basis and/or when the log file reach 100MB Using this configuration: - Most areas of the application will **only** log `FATAL` and `ERROR` events for most areas of the application. - The `execute`, `blockvalidator`, `blockexecutor`, `web3`, `minerserver`, `pendingstate`, `blockchain`, `messageProcess`, areas specify `INFO`, so those will **only** log `FATAL`, `ERROR`, `WARN`, and `INFO` events. - The will be no `DEBUG`, `INFO`, and `TRACE` logs. ## Using logback configuration file A logback configuration example can be downloaded from [here](https://github.com/rsksmart/artifacts/blob/master/rskj-ubuntu-installer/config/logback.xml). #### Using logback with a installed node If you're running a node [using the release jar file](/node-operators/setup/installation/java) use the following command: ```bash java -cp rskj-core-7.0.0-LOVELL-all.jar -Dlogback.configurationFile=/full/path/to/logback.xml co.rsk.Start ``` #### Using logback with a compiled node If you're running a node [by compiling the code](/node-operators/setup/installation/java) on VM Options *add*: ```shell -Dlogback.configurationFile=/full/path/to/logback.xml ``` > Note: path should be written without abbreviations (full path)