定制 pecotamic/missing-pages-logger 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pecotamic/missing-pages-logger

最新稳定版本:1.0.0

Composer 安装命令:

composer require pecotamic/missing-pages-logger

包简介

README 文档

README

Statamic 3.0+ Statamic 4.0+ Statamic 5.0+

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)

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-07-05