ilyaserdyuk/telegram-writer

Writer in Telegram for Zend Log

1.0 2017-07-21 22:33 UTC

This package is auto-updated.

Last update: 2024-10-29 04:59:22 UTC


README

Installation

Use Composer:

$ composer require ilyaserdyuk/telegram-writer:^1.0

How to configure & use

Example application.ini:

resources.log.telegram.writerNamespace = "TelegramLog_Writer"
resources.log.telegram.writerName = "Telegram"
resources.log.telegram.writerParams.token = "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
resources.log.telegram.writerParams.chat_id = "@my_project_alerts"

I recommend using the formatter like this:

resources.log.telegram.formatterName = "Simple"
resources.log.telegram.formatterParams.format = '%timestamp% %priorityName% in [%file%:%line%] #%errno% %message%' PHP_EOL'%context%' PHP_EOL PHP_EOL