From 8ef764f24eef669a4aae5eea6a8a4f8fef6101ff Mon Sep 17 00:00:00 2001 From: Donald Webster Date: Tue, 12 Nov 2019 11:08:56 -0800 Subject: [PATCH] Updated Logging and Log Files (markdown) --- Logging-and-Log-Files.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Logging-and-Log-Files.md b/Logging-and-Log-Files.md index 8eb62ba..6d68911 100644 --- a/Logging-and-Log-Files.md +++ b/Logging-and-Log-Files.md @@ -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`. +``` + + ... + debug + ... + + ### Clearing Logs ### You can clear log files and the logs database directly from the UI, under System -> Logs -> Files and System -> Logs respectively.