mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-28 18:01:04 -06:00
21 lines
394 B
Plaintext
21 lines
394 B
Plaintext
<?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,
|
|
],
|
|
],
|
|
|
|
];
|