attlaz / attlaz-monolog
Attlaz integration for Monolog
2.1.2
2024-08-09 15:41 UTC
Requires
- php: >=8.1
- attlaz/client: ^1.11.7
- monolog/monolog: ^3.7
- psr/log: ^2.0 || ^3.0
Requires (Dev)
- ext-json: *
- inpsyde/php-coding-standards: ^1.0.0
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-10-09 16:04:33 UTC
README
This package allows you to integrate Attlaz into Monolog.
Installation
Install the latest version with
$ composer require attlaz/attlaz-monolog
Basic Usage
<?php use Monolog\Logger; use \Attlaz\Client; use \Attlaz\AttlazMonolog\Handler\AttlazHandler; $attlazClient = new Client('<your-token>', '<your-token>'); $attlazHandler = new AttlazHandler($client, new LogStreamId('Vt9HtWRee'), Level::Info); /** @var $logger Monolog\Logger */ $logger->pushHandler($attlazHandler); // Add records to the log $log->warning('Foo'); $log->error('Bar');
About
Requirements
- Attlaz Monolog
^2.0
works with PHP 8.1 and above - Attlaz Monolog
^1.0
works with PHP 7.2 and above - Attlaz Monolog
^0.0
works with PHP 5.3 up to 8.1 (No longer maintained)