Apollo Logger is a utility for logging Apollo GraphQL operations, including queries, mutations, subscriptions, and PubSub events. Current version is 0.3.3. The package has low release cadence (last release in 2018). Key differentiators: it provides multiple entry points (LoggingLink for Apollo Link, wrapPubSub for PubSub, formatResponse for Express) to log the full lifecycle of GraphQL requests. It is unmaintained and should be considered for deprecation in favor of modern alternatives like Apollo Server plugins.
npm install apollo-loggerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up logging for Apollo Link, Express server, and PubSub using Apollo Logger.
Consider using Apollo Server built-in plugins or custom logging solutions.
Use formatResponse.bind(logOptions) when passing to apollo-server-express.
Store the returned wrapped instance and use that for all PubSub operations.
Run: npm install apollo-link graphql-subscriptions graphql iterall
Use formatResponse.bind(logOptions) when passing to graphqlExpress.
Run: npm install apollo-link
Use: import { wrapPubSub } from 'apollo-logger';