1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-11-22 02:32:51 +01:00

Updated Logging and Log Files (markdown)

Donald Webster 2019-11-12 11:08:56 -08:00
parent 914279f7cc
commit 8ef764f24e

@ -1,15 +1,20 @@
The default log level is Info, if Debug or Trace logs are needed, it will need to be changed in Settings first.
### Location ###
The log files are located in Sonarr's [AppData directory](https://github.com/Sonarr/Sonarr/wiki/AppData-Directory), inside the `logs/` folder. You can also access the log files from the Sonarr UI (System: Logs: Files).
The log files are located in Sonarr's [AppData directory](https://github.com/Sonarr/Sonarr/wiki/AppData-Directory), inside the `logs/` folder. You can also access the log files from the Sonarr UI at System -> Logs -> Files.
**Note**: the Logs Table in the UI is _not_ the same as the log files.
### Trace/Debug Logs ###
You can enable Trace or Debug logging in Settings on the General tab, by setting the `Log Level`. Sonarr does not need to restarted for the change to take effect. This change only effects the log files, not the logging database. The latest debug/trace log files are named `sonarr.debug.txt` and `sonarr.trace.txt` respectively.
You can change the log level at Settings -> General -> Logging. Sonarr does not need to restarted for the change to take effect. This change only effects the log files, not the logging database. The latest debug/trace log files are named `sonarr.debug.txt` and `sonarr.trace.txt` respectively.
If you're unable to access the Sonarr UI to set the logging level you can do so by editing `config.xml` in the [AppData directory](https://github.com/Sonarr/Sonarr/wiki/AppData-Directory) by setting the `LogLevel` value to `Debug` or `Trace` instead of `Info`.
```
<Config>
...
<LogLevel>debug</LogLevel>
...
</Config>
### Clearing Logs ###
You can clear log files and the logs database directly from the UI, under System -> Logs -> Files and System -> Logs respectively.