inpsyde / logzio-monolog
Logz.io integration for Monolog
Installs: 902 861
Dependents: 1
Suggesters: 0
Security: 0
Stars: 17
Watchers: 5
Forks: 7
Open Issues: 1
Requires
- php: >=8.1
- ext-curl: *
- monolog/monolog: >=3.0
Requires (Dev)
- ext-json: *
- inpsyde/php-coding-standards: ^1.0@dev
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2024-10-10 08:21:26 UTC
README
This package allows you to integrate Logz.io into Monolog.
Monolog support
Monolog 1, 2 and 3 will be supported in different versions:
- Monolog 1.x will be supported in this package in all versions of 0.x
- Monolog 2.x will be supported in this package in all versions of 1.x
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');