Skip to content

IlyaSerdyuk/telegram-writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Writer in Telegram for Zend Log

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

About

Writer in Telegram for Zend Log

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages