shlink/config/autoload/logger.local.php.dist

21 lines
394 B
Text
Raw Normal View History

<?php
declare(strict_types=1);
2022-06-04 09:59:17 +03:00
use Monolog\Level;
use Shlinkio\Shlink\Common\Logger\LoggerType;
$isSwoole = extension_loaded('openswoole');
return [
'logger' => [
'Shlink' => [
2022-06-04 09:59:17 +03:00
// For swoole, send logs as stream
'type' => $isSwoole ? LoggerType::STREAM->value : LoggerType::FILE->value,
'level' => Level::Debug->value,
],
],
];