mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-24 16:10:38 -06:00
23 lines
453 B
Plaintext
23 lines
453 B
Plaintext
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Monolog\Level;
|
|
use Shlinkio\Shlink\Common\Logger\LoggerType;
|
|
|
|
use function Shlinkio\Shlink\Config\runningInOpenswoole;
|
|
|
|
$logToStream = runningInOpenswoole();
|
|
|
|
return [
|
|
|
|
'logger' => [
|
|
'Shlink' => [
|
|
// For openswoole, send logs as stream
|
|
'type' => $logToStream ? LoggerType::STREAM->value : LoggerType::FILE->value,
|
|
'level' => Level::Debug->value,
|
|
],
|
|
],
|
|
|
|
];
|