定制 websoftwares/access-log 二次开发

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

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

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.

Build Status Scrutinizer Code Quality Code Coverage

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-25