pecotamic / missing-pages-logger
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/pecotamic/missing-pages-logger
This package is auto-updated.
Last update: 2025-10-07 10:32:54 UTC
README
Pecotamic Missing Pages Logger is a Statamic addon which logs missing pages (404 errors)
How to Install
You can search for this addon in the Tools > Addons
section of the Statamic control panel and click install, or run the following command from your project root:
composer require pecotamic/missing-pages-logger
The package requires PHP 8+. It will auto register.
Configuration (optional)
You can override the default options by publishing the configuration:
php artisan vendor:publish --provider="Pecotamic\MissingPagesLogger\ServiceProvider" --tag=config
This will copy the default config file to config/pecotamic/missing-pages-logger.php
.
Enable/Disable Logging:
In your .env
file:
PECOTAMIC_MISSING_PAGES_LOGGER_ENABLED=true
Or in the config file config/missing-pages-logger.php
:
'log_missing_pages' => env('PECOTAMIC_MISSING_PAGES_LOGGER_ENABLED', false),
Log Files Location:
When logging is enabled, missing pages are logged to:
- Index file:
storage/pecotamic/missing-pages-logger/missing_pages.yaml
- Individual log files:
storage/pecotamic/missing-pages-logger/missing_pages/{id}.yaml
Each log entry contains:
- Request URI
- Date and time
- Remote address (IP)
- Referer (if available)
- User agent (if available)