Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Latest commit

 

History

History
17 lines (13 loc) · 642 Bytes

File metadata and controls

17 lines (13 loc) · 642 Bytes

Sentry java.util.logging Example

This project contains an example Sentry integration with java.util.logging.

When using java.util.logging the JVM must be started with all handler classes available, so this project uses Maven assembly to build a JAR containing all dependencies that may be run directly via java.

# Build the JAR
mvn clean package

# Run the JAR
SENTRY_DSN="https://public:private@host:port/1" \
java \
-Djava.util.logging.config.file=src/main/resources/logging.properties \
-cp ./target/sentry-java-jul-example-1.0-SNAPSHOT-jar-with-dependencies.jar \
sentry.example.jul.Application