2019-08-16 11:38:26 -05:00
|
|
|
<?php
|
2019-10-05 10:26:10 -05:00
|
|
|
|
2019-08-16 11:38:26 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Shlinkio\Shlink;
|
|
|
|
|
2022-06-04 01:59:17 -05:00
|
|
|
use Shlinkio\Shlink\Common\Logger\LoggerType;
|
2019-08-16 11:38:26 -05:00
|
|
|
|
2022-08-27 06:01:38 -05:00
|
|
|
use function Shlinkio\Shlink\Config\runningInRoadRunner;
|
|
|
|
|
2019-08-16 11:38:26 -05:00
|
|
|
return [
|
|
|
|
|
|
|
|
'logger' => [
|
2019-11-30 10:59:04 -06:00
|
|
|
'Shlink' => [
|
2022-06-04 01:59:17 -05:00
|
|
|
'type' => LoggerType::STREAM->value,
|
2022-08-27 06:01:38 -05:00
|
|
|
'destination' => runningInRoadRunner() ? 'php://stderr' : 'php://stdout',
|
2019-08-16 11:38:26 -05:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|