@@ -19,6 +19,15 @@ Open config/logging.php and change the file
1919
2020``` php
2121
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+
2231 'channels' => [
2332 'stack' => [
2433 'driver' => 'stack',
@@ -39,12 +48,12 @@ Open config/logging.php and change the file
3948 'bot_api' => env('LOG_TELEGRAM_BOT_API', 'https://api.telegram.org/bot'),
4049 'proxy' => env('LOG_TELEGRAM_BOT_PROXY', null),
4150 '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),
4857 ]
4958 ],
5059
0 commit comments