logOutputs() {
    /**
     * If this.serverless.serviceOutputs exists property exists,
     * loop through the "endpoints" and "functions" in this.serverless.serviceOutputs Map.
     * List the first 10 in the console.
     */
    try {
      if (this.serverless.serviceOutputs) {
        const functions = this.serverless.serviceOutputs.get('functions')
        if (Array.isArray(functions)) {
          const functionCount = functions.length
          const maxFunctions = 10
          let functionsLog = 'Functions:\n'

          if (functionCount > 0) {
            for (let i = 0; i < Math.min(functionCount, maxFunctions); i++) {
              functionsLog += `  ${functions[i]}\n`
            }

            if (functionCount > maxFunctions) {
              functionsLog += `  ... and ${functionCount - maxFunctions} more\n`
            }
          }

          // Remove line break at the end
          functionsLog = functionsLog.slice(0, -1)

          logger.aside(functionsLog)
        }

        let endpoints = this.serverless.serviceOutputs.get('endpoints')

        // If there is only one endpoint, it is stored as a separate property
        const singleEndpoint = this.serverless.serviceOutputs.get('endpoint')

        endpoints = endpoints || (singleEndpoint ? [singleEndpoint] : null)

        if (Array.isArray(endpoints)) {
          const endpointCount = endpoints.length
          const maxEndpoints = 10
          let endpointsLog = 'Endpoints:\n'

          if (endpointCount > 0) {
            for (let i = 0; i < Math.min(endpointCount, maxEndpoints); i++) {
              endpointsLog += `  ${endpoints[i]}\n`
            }

            if (endpointCount > maxEndpoints) {
              endpointsLog += `  ... and ${endpointCount - maxEndpoints} more\n`
            }
          }

          // Remove line break at the end
          endpointsLog = endpointsLog.slice(0, -1)

          logger.aside(endpointsLog)
        }
      }
    } catch (e) {
      // Fail silently except for debug
      logger.debug(`Failed to log functions and endpoints: ${e.message}`)
    }
  }
Logs the first 10 functions and endpoints in the serviceOutputs Map.