Connect your java.util.logging project to GlitchTip


Using Maven:


Using Gradle:

compile 'io.sentry:sentry:1.7.27'

Using SBT:

libraryDependencies += "io.sentry" % "sentry" % "1.7.27"

For other dependency managers see the central Maven repository.


The following example configures a ConsoleHandler that logs to standard out at the INFO level and a SentryHandler that logs to the GlitchTip server at the WARN level. The ConsoleHandler is only provided as an example of a non-Sentry appender that is set to a different logging threshold, like one you may already have in your project.

Example configuration using the format:

# Enable the Console and Sentry handlers

# Set the default log level to INFO

# Override the Sentry handler log level to WARNING

When starting your application, add the java.util.logging.config.file to the system properties, with the full path to the as its value:

$ java -Djava.util.logging.config.file=/path/to/ MyClass

Next, you’ll need to configure your DSN (client key) and optionally other values such as environment and release. [See the configuration page]({%- link _documentation/clients/java/ -%}#configuration) for ways you can do this.