Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 1.82 KB

README.md

File metadata and controls

44 lines (36 loc) · 1.82 KB

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