Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Latest commit

 

History

History
17 lines (13 loc) · 641 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 641 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 \
io.sentry.example.Application