@@ 271-278 (lines=8) @@ | ||
268 | * |
|
269 | * @return \Psr\Log\LoggerInterface |
|
270 | */ |
|
271 | protected function createSyslogDriver(array $config) |
|
272 | { |
|
273 | return new Monolog($this->parseChannel($config), [ |
|
274 | $this->prepareHandler(new SyslogHandler( |
|
275 | 'TimSDK', Arr::get($config, 'facility', LOG_USER), $this->level($config)) |
|
276 | ), |
|
277 | ]); |
|
278 | } |
|
279 | ||
280 | /** |
|
281 | * Create an instance of the "error log" log driver. |
|
@@ 287-294 (lines=8) @@ | ||
284 | * |
|
285 | * @return \Psr\Log\LoggerInterface |
|
286 | */ |
|
287 | protected function createErrorlogDriver(array $config) |
|
288 | { |
|
289 | return new Monolog($this->parseChannel($config), [ |
|
290 | $this->prepareHandler(new ErrorLogHandler( |
|
291 | Arr::get($config, 'type', ErrorLogHandler::OPERATING_SYSTEM), $this->level($config)) |
|
292 | ), |
|
293 | ]); |
|
294 | } |
|
295 | ||
296 | /** |
|
297 | * Prepare the handlers for usage by Monolog. |