Skip to content

针对imp编写的一个composer包,主要是记录一些日志

License

Notifications You must be signed in to change notification settings

shuxiaoyuan666/implogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

implogs

Software License Travis Total Downloads

Install

composer require shuxiaoyuan666/implogs

laravel 使用

php artisan vendor:publish 
// 选择: Shuxiaoyuan666\Implogs\ImplogsServiceProvider

# 配置全局中间件
在 app/Http/Kernel.php 文件的 $middleware 数组中添加如下一行:
\Shuxiaoyuan666\Implogs\Middleware\ImpRequestLogMiddleware::class,

# 配置 command 任务调度
在 app/Console/Kernel.php 文件的 schedule 方法中添加如下一行:
withoutOverlapping: 避免任务重复
everyMinute: 每分钟执行一次
$schedule->command('ImpRequestLog')->withoutOverlapping()->everyMinute();

Usage

Write a few lines about the usage of this package.

Testing

Run the tests with:

vendor/bin/phpunit

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

Security

If you discover any security-related issues, please email sxy@shuxiaoyuan.com instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

About

针对imp编写的一个composer包,主要是记录一些日志

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages