orisai / monolog-logtail
Monolog handler for Logtail
1.0.1
2024-06-21 12:28 UTC
Requires
- php: 7.4 - 8.3
- monolog/monolog: ^2.3.0|^3.0.0
- orisai/exceptions: ^1.0.0
- psr/http-client: ^1.0.1
- psr/http-factory: ^1.0.1
- psr/http-message: ^1.0.1|^2.0.0
Requires (Dev)
- brianium/paratest: ^6.3.0
- infection/infection: ^0.26.0|^0.27.0|^0.28.0|^0.29.0
- nyholm/psr7: ^1.5.0
- orisai/coding-standard: ^3.0.0
- phpstan/extension-installer: ^1.0.0
- phpstan/phpstan: ^1.0.0
- phpstan/phpstan-deprecation-rules: ^1.0.0
- phpstan/phpstan-phpunit: ^1.0.0
- phpstan/phpstan-strict-rules: ^1.0.0
- phpunit/phpunit: ^9.5.0
- staabm/annotate-pull-request-from-checkstyle: ^1.7.0
- symfony/http-client: ^5.3.0|^6.0.0|^7.0.0
README
Monolog 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');