Log Files

Mark McDowall edited this page Nov 30, 2016 · 9 revisions

By default log files are Info level logs, if debug or trace logs are required you need to enable them in settings first.

Location

The location of the log files depends where Sonarr's AppData directory is located, the log files will be inside the logs folder. You can also access the log files from the Sonarr UI (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.

Clearing Logs

You can clear log files and the logs database directly from the UI, under System -> Logs -> Files and System -> Logs respectively.

Multiple Log Files

Sonarr uses rolling log files, each one limited to 1MB in size. The current log file is always sonarr.txt, for the the other files sonarr.0.txt is the next newest (the higher the number the older it is) up to 6 log files total. This log file contains fatal,error,warn and info entries.
When Debug log level is enabled, additional sonarr.debug.txt rolling log files will be present, up to 51 files. This log files contains fatal,error,warn,info and debug entries. It usually covers a 40h period.
When Trace log level is enabled, additional sonarr.trace.txt rolling log files will be present, up to 51 files. This log files contains fatal,error,warn,info,debug and trace entries. Due to trace verbosity it only covers a couple of hours.