How to use the graphql-language-service-server.Logger function in graphql-language-service-server

To help you get started, we’ve selected a few graphql-language-service-server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github graphql / graphiql / packages / graphql-language-service / src / cli.js View on Github external
});

    const options = {};
    if (argv && argv.port) {
      options.port = argv.port;
    }
    if (argv && argv.method) {
      options.method = argv.method;
    }
    if (argv && argv.configDir) {
      options.configDir = argv.configDir;
    }
    try {
      startServer(options);
    } catch (error) {
      const logger = new Logger();
      logger.error(error);
    }
    break;
  default:
    client(command, argv);
    break;
}

// Exit the process when stream closes from remote end.
process.stdin.on('close', () => {
  process.exit(0);
});

graphql-language-service-server

Server process backing the GraphQL Language Service

MIT
Latest version published 3 months ago

Package Health Score

84 / 100
Full package analysis