mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-11 08:38:03 +03:00
20 lines
394 B
Text
20 lines
394 B
Text
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Monolog\Level;
|
|
use Shlinkio\Shlink\Common\Logger\LoggerType;
|
|
|
|
$isSwoole = extension_loaded('openswoole');
|
|
|
|
return [
|
|
|
|
'logger' => [
|
|
'Shlink' => [
|
|
// For swoole, send logs as stream
|
|
'type' => $isSwoole ? LoggerType::STREAM->value : LoggerType::FILE->value,
|
|
'level' => Level::Debug->value,
|
|
],
|
|
],
|
|
|
|
];
|