承接 darwinnatha/purge-logs 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

darwinnatha/purge-logs

最新稳定版本:v1.0

Composer 安装命令:

composer require darwinnatha/purge-logs

包简介

a simple package for deleting logs by keeping those at a given period

README 文档

README

Latest Version on Packagist Total Downloads

This package allows you to delete logs, keeping only those from a given period.

Installation

To install this package, you should add the package to your project via Composer.

composer require darwinnatha/pure-logs

Usage

To use this package, publish the configuration file.

php artisan vendor:publish --provider="Darwinnatha\PurgeLogs\PurgeLogsServiceProvider"

Then, you can purge the logs by running the following command.

php artisan logs:purge

Alternatively, if you want to specify the number of days to retain, you can use the keep-days argument.

php artisan logs:purge --keep-days=7

Configuration

You can configure the number of days to retain by editing the config/purge-logs.php file.

return [
    'retention_period' => 7,
];

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-06