Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matviib/telegram-logger
Put log messages from your Laravel app to your Telegram bot
https://github.com/matviib/telegram-logger
laravel laravel-5-package laravel-logger laravel-logging laravel-logs laravel-telegram log-to-telegram logger logging logs telegram telegram-bot telegram-logger telegram-loging
Last synced: 9 days ago
JSON representation
Put log messages from your Laravel app to your Telegram bot
- Host: GitHub
- URL: https://github.com/matviib/telegram-logger
- Owner: MatviiB
- Created: 2018-03-26T16:24:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-24T05:01:11.000Z (over 5 years ago)
- Last Synced: 2024-10-12T10:45:01.332Z (25 days ago)
- Topics: laravel, laravel-5-package, laravel-logger, laravel-logging, laravel-logs, laravel-telegram, log-to-telegram, logger, logging, logs, telegram, telegram-bot, telegram-logger, telegram-loging
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 29
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Logging your application problems(achievements) to Telegram
### Ultralight package## Usage
```
\Log::telegram('Hey, i am your application, and i have a problem');
```
![laravel telegram logger](https://gitlab.com/MatviiB/assets/raw/master/download%20(2).png)# Instalation
```
composer require matviib/telegram-logger
```
Add to your .env file:
```
TELEGRAM_LOGGER_TOKEN=
TELEGRAM_LOGGER_CHAT_ID=XXX,YYY
#developer1 - XXX
#developer2 - YYY
```# Bonus
### Creating telegram bot tutorial
1. Find BotFather.
2. Send `/newbot`.
3. Set up name and bot-name for your bot.
4. Get token and add it to your .env file.
5. Find your bot (BotFather already generate link to it in last message).
6. Send one or few messages to him.
7. Open next url `https://api.telegram.org/bot/getUpdates` and find `chat_id`.Steps #6,#7 needed for adding EACH developer to listeners of the bot.
![laravel telegram logger](https://gitlab.com/MatviiB/assets/raw/master/download%20(1).png)