@@ 148-157 (lines=10) @@ | ||
145 | $this->handleEvent($level, $message, $context); |
|
146 | }); |
|
147 | } |
|
148 | else |
|
149 | { |
|
150 | // starting from L5.4 MessageLogged event class was introduced |
|
151 | // https://github.com/laravel/framework/commit/57c82d095c356a0fe0f9381536afec768cdcc072 |
|
152 | $this->app['events']->listen('Illuminate\Log\Events\MessageLogged', function($log) |
|
153 | { |
|
154 | ||
155 | $this->handleEvent($log->level, $log->message, $log->context); |
|
156 | }); |
|
157 | } |
|
158 | ||
159 | // starting from L5.2 JobProcessing event class was introduced |
|
160 | // https://github.com/illuminate/queue/commit/ce2b5518902b1bcb9ef650c41900fc8c6392eb0c |
@@ 165-172 (lines=8) @@ | ||
162 | $this->handleEvent($log['level'], $log['message'], $log['context']); |
|
163 | }); |
|
164 | } |
|
165 | else |
|
166 | { |
|
167 | // starting from Lumen 5.6 MessageLogged event class was introduced |
|
168 | $this->app['events']->listen('Illuminate\Log\Events\MessageLogged', function ($log) |
|
169 | { |
|
170 | $this->handleEvent($log->level, $log->message, $log->context); |
|
171 | }); |
|
172 | } |
|
173 | ||
174 | // starting from L5.2 JobProcessing event class was introduced |
|
175 | // https://github.com/illuminate/queue/commit/ce2b5518902b1bcb9ef650c41900fc8c6392eb0c |