PHPackages                             msschl/monolog-http-handler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. msschl/monolog-http-handler

ActiveLibrary[HTTP &amp; Networking](/categories/http)

msschl/monolog-http-handler
===========================

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

0.1.3(8y ago)119.2k↓33.6%21MITPHPPHP ^7.0

Since Apr 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/msschl/monolog-http-handler)[ Packagist](https://packagist.org/packages/msschl/monolog-http-handler)[ RSS](/packages/msschl-monolog-http-handler/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelogDependencies (11)Versions (7)Used By (1)

[![Build Status](https://camo.githubusercontent.com/4c423eb4c6e3521306ecc0a6c8d40ec6192894a4180b505c516e8ac77abce797/68747470733a2f2f7472617669732d63692e6f72672f6d737363686c2f6d6f6e6f6c6f672d687474702d68616e646c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/msschl/monolog-http-handler)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4bc0736b0e903a38578d00bf0a984e499bcff2cabb91e37aa9bdd97ed762a7fa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d737363686c2f6d6f6e6f6c6f672d687474702d68616e646c65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/msschl/monolog-http-handler/?branch=master)[![Code Intelligence Status](https://camo.githubusercontent.com/039046188413dc939acd5aa5c2158a90e6555b3962c9913a3d518a4df5c19051/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d737363686c2f6d6f6e6f6c6f672d687474702d68616e646c65722f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)[![Coverage Status](https://camo.githubusercontent.com/496d6f85eb5886be891bbf85df63801257c7f17af0ca1aaea5ca305ee1694956/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d737363686c2f6d6f6e6f6c6f672d687474702d68616e646c65722f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/msschl/monolog-http-handler?branch=master)

Monolog Http Handler
====================

[](#monolog-http-handler)

This package provides a HttpHandler for the [Monolog](https://github.com/Seldaek/monolog) library.

Prerequisites
-------------

[](#prerequisites)

- PHP 7.0 or above.
- Since this package adds a HttpHandler to the [Monolog](https://github.com/Seldaek/monolog) library, you should first install [Monolog](https://github.com/Seldaek/monolog#installation).

Installation
------------

[](#installation)

Install the latest version with

```
$ composer require msschl/monolog-http-handler
```

#### After the installation

[](#after-the-installation)

...you need to decide on which [HTTP client/adapter](https://packagist.org/providers/php-http/client-implementation) you want to use.

##### HTTP Clients

[](#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](https://www.php-fig.org/psr/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](https://packagist.org/providers/php-http/client-implementation).

Here is a list of all officially supported clients and adapters by HTTPlug:

Read more about HTTPlug in [their docs](http://docs.php-http.org/en/latest/httplug/users.html).

Basic Usage
-----------

[](#basic-usage)

```
