2017 © Pedro Peláez
 

library monolog-seq-handler

msschl/monolog-seq-handler sends log records to a Seq-Server.

image

msschl/monolog-seq-handler

msschl/monolog-seq-handler sends log records to a Seq-Server.

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

The README.md

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

Monolog Seq Handler

This package provides a SeqHandler for the Monolog library. Seq is a log server that runs on a central machine. Your applications send structured events through a package like monolog-seq-handler., (*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-seq-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\SeqHandler;

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

// push the SeqHandler to the monolog logger.
$log->pushHandler(new SeqHandler('https://seq-server/'));

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

To authenticate or tag messages from the logger, set a Api-Key:, (*8)

$log->pushHandler(new SeqHandler('https://seq-server/', 'API-KEY'));

About

Submitting bugs and feature requests

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

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

License

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

The Versions

10/04 2018

dev-dev

dev-dev

msschl/monolog-seq-handler sends log records to a Seq-Server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog handler seq structured logging

10/04 2018

dev-master

9999999-dev

msschl/monolog-seq-handler sends log records to a Seq-Server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog handler seq structured logging

10/04 2018

0.1.0

0.1.0.0

msschl/monolog-seq-handler sends log records to a Seq-Server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog handler seq structured logging

09/04 2018

0.0.2

0.0.2.0

msschl/monolog-seq-handler sends log records to a Seq-Server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog handler seq structured logging

09/04 2018

0.0.1

0.0.1.0

msschl/monolog-seq-handler sends log records to a Seq-Server.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Markus Schlotbohm

monolog handler seq structured logging