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

21 lines
394 B
Plaintext
Raw Normal View History

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