Skip to content

Commit 8eea48d

Browse files
author
sauravkumal
committed
update docs
1 parent 9e0e0ae commit 8eea48d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Or you can simply change the default log channel in the .env
4242
LOG_CHANNEL=telegram
4343
```
4444

45-
Publish config file
45+
Publish config file and views
4646
```
4747
php artisan vendor:publish --provider "Logger\TelegramLoggerServiceProvider"
4848
```
@@ -71,6 +71,14 @@ For using this package you need to create Telegram bot
7171
4. Get token and add it to your .env file (it is written above)
7272
5. Go to your bot and send ``/start`` message
7373

74+
## Change log template at runtime
75+
76+
1. Change config for template.
77+
```php
78+
config(['telegram-logger.template'=>'laravel-telegram-logging::custom'])
79+
```
80+
2. Call `Logger` as usual.
81+
7482
## Lumen support
7583

7684
To make it work with Lumen, you need also run two steps:

0 commit comments

Comments
 (0)