2017 © Pedro Peláez
 

library access-log

Log PSR-7 http messages using a PSR-3 logger instance following apache2 access log format.

image

websoftwares/access-log

Log PSR-7 http messages using a PSR-3 logger instance following apache2 access log format.

  • Monday, May 25, 2015
  • by Websoftwares
  • Repository
  • 0 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

AccessLog (v0.0.*)

Log PSR-7 http messages using a PSR-3 logger instance following apache2 access log format., (*1)

Build Status Scrutinizer Code Quality Code Coverage, (*2)

Install composer in your project:, (*3)

curl -s http://getcomposer.org/installer | php

Create a composer.json file in your project root:, (*4)

{
    "require": {
        "websoftwares/access-log": ~0.0.1"
    }
}

Install via composer, (*5)

php composer.phar install

Usage

Basic usage of the Websoftwares\AccessLog\Log class., (*6)

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., (*7)

License

The MIT License (MIT)., (*8)

The Versions

25/05 2015

dev-master

9999999-dev

Log PSR-7 http messages using a PSR-3 logger instance following apache2 access log format.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Boris Verhaaff

log http psr7 request psr3

25/05 2015

0.0.1

0.0.1.0

Log PSR-7 http messages using a PSR-3 logger instance following apache2 access log format.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Boris Verhaaff

log http psr7 request psr3