Configuration Example

Configuration options common to all Java integrations like environment and release can be configured through environment variables, system properties or sentry.properties file. See the configuration page for an in-depth explanation of each property.

Configuration options specific to java.util.logging integration can be configured in logging.properties file:

Copied
io.sentry.jul.SentryHandler.level=CONFIG
io.sentry.jul.SentryHandler.minimumEventLevel=INFO
io.sentry.jul.SentryHandler.minimumBreadcrumbLevel=CONFIG
io.sentry.jul.SentryHandler.printfStyle=true
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").