Locating Error Logs and Database Backups

Error Logs #

Each time an exception is thrown while Craft is running, the error will be logged in storage/logs/web.log.

When web.log gets too big, Craft will automatically rename it to web.log.1. If there’s already an existing web.log.1, that will be renamed to web.log.2, and so on. (Craft will keep up to 6 log files at a time, including the latest craft.log.)

If Dev Mode is enabled, there will be lots of other stuff in those logs as well. To find the actual errors, search the file for “[error]”.

Craft tells PHP to save any fatal PHP errors to that same directory as well: storage/logs/phperrors.log.

Database Backups #

All database backups are stored in storage/backups/. They get created each time you update Craft, and any time you request a backup from the Backup Database tool in Utilities.

Backup filenames are a combination of your site name, a timestamp, and the Craft version number that’s currently installed. The timestamp follows the format YYYY-MM-DD-HHMMSS.