/logzio-monolog

Logz.io integration into Monolog

Primary LanguagePHPMIT LicenseMIT

Logz.io Monolog integration

Latest Stable Version Project Status Build Status License

This package allows you to integrate Logz.io into Monolog.

Installation

Install the latest version with

$ composer require inpsyde/logzio-monolog

Basic Usage

<?php

use Monolog\Logger;
use Inpsyde\LogzIoMonolog\Handler\LogzIoHandler;

// create a log channel
$log = new Logger('name');
$log->pushHandler(new LogzIoHandler('<your-token>'));

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