定制 szabson/logs-cleanup-data 二次开发

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

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

szabson/logs-cleanup-data

最新稳定版本:1.0.0

Composer 安装命令:

composer require szabson/logs-cleanup-data

包简介

Logs Cleanup Data Project

README 文档

README

Logs Cleanup Data is a simple PHP package for managing and working with logs.

Installation

You can install this package via Composer. Run the following command to add it to your project:

composer require szabson/logs-cleanup-data:dev-master

Example Usage

In the usage example found in the RemoveLogsCommandTest, a logger factory FileLoggerFactory is created, which is used by RemoveLogsCommand to manage logs. The RemoveLogsCommand removes logs older than a specified number of days.

Requirements

The project is written in PHP and uses PHPUnit for testing. To run the project and tests, you need to have PHP version 8.2 and PHPUnit installed. The project has no external library dependencies.

Additional content

In addition to deleting logs, I've added some simple log management features that you'll find in FileLogger I implemented file log management. I took care of the possibility of future development with database logs.

Running Tests

 vendor/bin/phpunit tests

This will run all the tests and display the results in the console.

Author

This project was created by Daniel Chabowski

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-10-23