mathiasgrimm / logzio-monolog

Logz.io integration into Monolog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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');

About

Logz.io integration into Monolog

License:MIT License


Languages

Language:PHP 100.0%