use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
use Symfony\Contracts\Service\ResetInterface;
/**
* @deprecated since Symfony 6.4, use HttpKernel's DebugLoggerConfigurator instead
*/
class Logger extends BaseLogger
implements DebugLoggerInterface, ResetInterface
{ public function getLogs(Request
$request = null
): array
{ if ($logger =
$this->
getDebugLogger()) { return $logger->
getLogs($request);
} return [];
} public function countErrors(Request
$request = null
): int
{ if ($logger =
$this->
getDebugLogger()) { return $logger->
countErrors($request);
}