@@ -19,6 +19,15 @@ Open config/logging.php and change the file
19
19
20
20
``` php
21
21
22
+ use TheCoder\MonologTelegram\Attributes\EmergencyAttribute;
23
+ use TheCoder\MonologTelegram\Attributes\CriticalAttribute;
24
+ use TheCoder\MonologTelegram\Attributes\ImportantAttribute;
25
+ use TheCoder\MonologTelegram\Attributes\DebugAttribute;
26
+ use TheCoder\MonologTelegram\Attributes\InformationAttribute;
27
+ use TheCoder\MonologTelegram\Attributes\LowPriorityAttribute;
28
+
29
+ ....
30
+
22
31
'channels' => [
23
32
'stack' => [
24
33
'driver' => 'stack',
@@ -39,12 +48,12 @@ Open config/logging.php and change the file
39
48
'bot_api' => env('LOG_TELEGRAM_BOT_API', 'https://api.telegram.org/bot'),
40
49
'proxy' => env('LOG_TELEGRAM_BOT_PROXY', null),
41
50
'topics_level' => [
42
- \TheCoder\MonologTelegram\Attributes\ EmergencyAttribute::class => env('LOG_TELEGRAM_EMERGENCY_ATTRIBUTE_TOPIC_ID', null),
43
- \TheCoder\MonologTelegram\Attributes\ CriticalAttribute::class => env('LOG_TELEGRAM_CRITICAL_ATTRIBUTE_TOPIC_ID', null),
44
- \TheCoder\MonologTelegram\Attributes\ ImportantAttribute::class => env('LOG_TELEGRAM_IMPORTANT_ATTRIBUTE_TOPIC_ID', null),
45
- \TheCoder\MonologTelegram\Attributes\ DebugAttribute::class => env('LOG_TELEGRAM_DEBUG_ATTRIBUTE_TOPIC_ID', null),
46
- \TheCoder\MonologTelegram\Attributes\ InformationAttribute::class => env('LOG_TELEGRAM_INFORMATION_ATTRIBUTE_TOPIC_ID', null),
47
- \TheCoder\MonologTelegram\Attributes\ LowPriorityAttribute::class => env('LOG_TELEGRAM_LOWPRIORITY_ATTRIBUTE_TOPIC_ID', null),
51
+ EmergencyAttribute::class => env('LOG_TELEGRAM_EMERGENCY_ATTRIBUTE_TOPIC_ID', null),
52
+ CriticalAttribute::class => env('LOG_TELEGRAM_CRITICAL_ATTRIBUTE_TOPIC_ID', null),
53
+ ImportantAttribute::class => env('LOG_TELEGRAM_IMPORTANT_ATTRIBUTE_TOPIC_ID', null),
54
+ DebugAttribute::class => env('LOG_TELEGRAM_DEBUG_ATTRIBUTE_TOPIC_ID', null),
55
+ InformationAttribute::class => env('LOG_TELEGRAM_INFORMATION_ATTRIBUTE_TOPIC_ID', null),
56
+ LowPriorityAttribute::class => env('LOG_TELEGRAM_LOWPRIORITY_ATTRIBUTE_TOPIC_ID', null),
48
57
]
49
58
],
50
59
0 commit comments