2017 © Pedro Peláez
 

library monolog-http-handler

msschl/monolog-http-handler sends log records to a HTTP server.

image

msschl/monolog-http-handler

msschl/monolog-http-handler sends log records to a HTTP server.

  • Tuesday, April 10, 2018
  • by msschl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 81 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 1 % Grown

The README.md

Build Status Scrutinizer Code Quality Code Intelligence Status Coverage Status, (*1)

Monolog Http Handler

This package provides a HttpHandler for the Monolog library., (*2)

Prerequisites

  • PHP 7.0 or above.
  • Since this package adds a HttpHandler to the Monolog library, you should first install Monolog.

Installation

Install the latest version with, (*3)

$ composer require msschl/monolog-http-handler

After the installation

...you need to decide on which HTTP client/adapter you want to use., (*4)

HTTP Clients

In order to send HTTP requests, you need a HTTP adapter. This package relies on HTTPlug which is build on top of PSR-7 and defines how HTTP message should be sent and received. You can use any library to send HTTP messages that implements php-http/client-implementation., (*5)

Here is a list of all officially supported clients and adapters by HTTPlug: http://docs.php-http.org/en/latest/clients.html, (*6)

Read more about HTTPlug in their docs., (*7)

Basic Usage

<?php

use Monolog\Logger;
use Msschl\Monolog\Handler\HttpHandler;

// create a log channel
$log = new Logger('name');

// push the HttpHandler to the monolog logger.
$log->pushHandler(new HttpHandler([
    'uri'     => 'https://localhost/your/endpoint/for/logging',
    'method'  => 'POST',
]));

// add records to the log
$log->warning('Foo');
$log->error('Bar');

About

Submitting bugs and feature requests

Bugs and feature request are tracked on GitHub, (*8)

Contributing

First of all, thank you for contributing! In order to make code reviews easier please follow some simple rules listed in the CONTRIBUTING.md file., (*9)

License

This project is licensed under the terms of the MIT license. See the LICENSE file for license rights and limitations., (*10)

The Versions

10/04 2018

dev-master

9999999-dev

msschl/monolog-http-handler sends log records to a HTTP server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog http handler

10/04 2018

0.1.3

0.1.3.0

msschl/monolog-http-handler sends log records to a HTTP server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog http handler

10/04 2018

dev-dev

dev-dev

msschl/monolog-http-handler sends log records to a HTTP server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog http handler

10/04 2018

0.1.2

0.1.2.0

msschl/monolog-http-handler sends log records to a HTTP server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog http handler

09/04 2018

dev-feature_FixCoverall

dev-feature_FixCoverall

msschl/monolog-http-handler sends log records to a HTTP server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog http handler

09/04 2018

0.1.1

0.1.1.0

msschl/monolog-http-handler sends log records to a HTTP server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog http handler

08/04 2018

0.1.0

0.1.0.0

msschl/monolog-http-handler sends log records to a HTTP server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog http handler

07/04 2018

0.0.1

0.0.1.0

msschl/monolog-http-handler sends log records to a HTTP server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog http handler

27/03 2018

1.0.0

1.0.0.0

msschl/monolog-http-handler sends log records to a HTTP server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog http handler

27/03 2018

0.0.2

0.0.2.0

msschl/monolog-http-handler sends log records to a HTTP server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog http handler