orisai/monolog-logtail

Monolog handler for Logtail

1.0.1 2024-06-21 12:28 UTC

This package is auto-updated.

Last update: 2024-06-21 12:29:46 UTC


README

Orisai
Monolog Logtail

Monolog handler for Logtail

📄 Check out our documentation.

💸 If you like Orisai, please make a donation. Thank you!

use Monolog\Logger;
use Orisai\MonologLogtail\LogtailClient;
use Orisai\MonologLogtail\LogtailHandler;

$logger = new Logger();
$token = '<YOUR_LOGTAIL_TOKEN>';
$logger->pushHandler(
	new LogtailHandler(
		new LogtailClient($token, /* ... */)
	),
);

$logger->info('Message logged');