public static function create(
        $kernel,
        $filename,
        $maxFiles = 0,
        $level = Logger::DEBUG,
        $bubble = true,
        $filePermission = null,
        $useLocking = false
    ) {
        return new RotatingFileHandler(
            $kernel->getLogDir() . DIRECTORY_SEPARATOR . $filename,
            $maxFiles,
            $level,
            $bubble,
            $filePermission,
            $useLocking
        );
    }