Monolog handler to send log by Telegram. This project is in the approval stage to be implemented officially in Monolog.
- PHP 5.4 or above
- Yii 2.0.0 or above
- Open your project directory;
- Run
composer require mero/telegram-handler
to addTelegramHandler
in your project vendor.
// ...
$handler = new \Mero\Monolog\Handler\TelegramHandler(
'TOKEN',
'CHAT_ID',
Logger::CRITICAL
);
// ...