Standardize logger for all Shlink execution contexts

This commit is contained in:
Alejandro Celaya
2023-05-07 13:18:19 +02:00
parent 28d93ea5e0
commit a797b74a70
8 changed files with 56 additions and 47 deletions

View File

@@ -6,14 +6,12 @@ namespace Shlinkio\Shlink;
use Shlinkio\Shlink\Common\Logger\LoggerType;
use function Shlinkio\Shlink\Config\runningInRoadRunner;
return [
'logger' => [
'Shlink' => [
'type' => LoggerType::STREAM->value,
'destination' => runningInRoadRunner() ? 'php://stderr' : 'php://stdout',
'destination' => 'php://stderr',
],
],