Skip to content

Disabling logging of sensitive information

The notprivacysafe SLF4J logger from graphql-java provides logging at different steps of the query execution process.

By default, all errors and invalid queries are logged by graphql-java. To disable this, include the following in your application.yml to turn off the logger:

logging:
  level:
    notprivacysafe: OFF

When set to the debug level, the notprivacysafe logger will also log at the query execution, parsing, and validation steps:

logging:
  level:
    notprivacysafe: DEBUG

This graphql-java issue adds support for configuring the logger.