websoftwares/access-log
最新稳定版本:0.0.1
Composer 安装命令:
composer require websoftwares/access-log
包简介
Log PSR-7 http messages using a PSR-3 logger instance following apache2 access log format.
README 文档
README
#AccessLog (v0.0.*) Log PSR-7 http messages using a PSR-3 logger instance following apache2 access log format.
Installing via Composer (recommended)
Install composer in your project:
curl -s http://getcomposer.org/installer | php
Create a composer.json file in your project root:
{
"require": {
"websoftwares/access-log": ~0.0.1"
}
}
Install via composer
php composer.phar install
Usage
Basic usage of the Websoftwares\AccessLog\Log class.
use Websoftwares\AccessLog\LogFormatFactory; use Websoftwares\AccessLog\Log; // $logger instance of Psr\Log\LoggerInterface; $format = (new LogFormatFactory)->commonLog(); $accessLog = new Log($logger, $format); // $request instance of Psr\Http\Message\ServerRequestInterface // $response instance of Psr\Http\Message\ResponseInterface $accessLog($request, $response);
Changelog
- v0.0.1: Initial import
Testing
In the tests folder u can find several tests.
License
The MIT License (MIT).
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-25