mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-04 12:12:03 +03:00
22 lines
453 B
Text
22 lines
453 B
Text
<?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,
|
|
],
|
|
],
|
|
|
|
];
|