[ 'shlink_rotating_handler' => [ 'level' => Logger::EMERGENCY, // This basically disables regular file logs ], 'shlink_stdout_handler' => [ 'class' => StreamHandler::class, 'level' => Logger::DEBUG, 'stream' => 'php://stdout', 'formatter' => 'dashed', ], ], 'loggers' => [ 'Shlink' => [ 'handlers' => ['shlink_stdout_handler'], ], ], ] : [ 'handlers' => [ 'shlink_rotating_handler' => [ 'level' => Logger::DEBUG, ], ], ]; return [ 'logger' => $logger, ];