stoffelio/statamic-404-logger

Statamic addon to automatically log all 404 requests

Installs: 3 696

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 1

Open Issues: 1

Type:statamic-addon

v1.1.0 2024-05-21 09:30 UTC

This package is auto-updated.

Last update: 2024-09-21 10:12:20 UTC


README

Statamic addon to automatically log all 404 requests.

Features

Any request to your website resulting in a 404 error will be written to a log file. The file contains the timestamp as well as the exact url that was requested. Use the information to fix your internal links or redirect users to the correct resource.

You can add a ERROR404LOG_ENABLED variable to your .env file to turn the logging on or off (defaults to on).

How to Install

Run the following command from your project root:

composer require stoffelio/statamic-404-logger

Optional: Change the name of the log file and the retention period in config/error404-log.php