File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,6 @@ class TelegramHandler extends AbstractProcessingHandler
42
42
*/
43
43
private $ appEnv ;
44
44
45
- /**
46
- * Blade template reference to be used by Logs
47
- *
48
- * @string
49
- */
50
- private $ template ;
51
-
52
45
/**
53
46
* TelegramHandler constructor.
54
47
* @param int $level
@@ -62,7 +55,6 @@ public function __construct($level)
62
55
// define variables for making Telegram request
63
56
$ this ->botToken = config ('telegram-logger.token ' );
64
57
$ this ->chatId = config ('telegram-logger.chat_id ' );
65
- $ this ->template = config ('telegram-logger.template ' );
66
58
67
59
// define variables for text message
68
60
$ this ->appName = config ('app.name ' );
@@ -104,7 +96,7 @@ protected function getDefaultFormatter(): FormatterInterface
104
96
*/
105
97
private function formatText (array $ record ): string
106
98
{
107
- return view ($ this -> template , array_merge ($ record ,[
99
+ return view (config ( ' telegram-logger. template' ) , array_merge ($ record ,[
108
100
'appName ' => $ this ->appName ,
109
101
'appEnv ' => $ this ->appEnv ,
110
102
])
You can’t perform that action at this time.
0 commit comments