Debug Log4j 2 apps and prevent crashes across your entire stack with Sentry. Improve your Log4j 2 monitoring workflow with a full view of releases so you can triage errors and prioritize live issues.
Grab the Sentry Java SDK:
<dependency> <groupId>io.sentry</groupId> <artifactId>sentry-log4j2</artifactId> <version>7.18.0</version> </dependency>
Configure your DSN:
<?xml version="1.0" encoding="UTF-8"?> <Configuration status="warn" packages="org.apache.logging.log4j.core,io.sentry.log4j2"> <Appenders> <Console name="Console" target="SYSTEM_OUT"> <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/> </Console> <Sentry name="Sentry" dsn="https://<key>@sentry.io/<project>" /> </Appenders> <Loggers> <Root level="info"> <AppenderRef ref="Sentry"/> <AppenderRef ref="Console"/> </Root> </Loggers> </Configuration>
Check our documentation for the latest instructions.
See all platformsSee details like filename and line number so you never have to guess. Filter and group Log4j 2 exceptions intuitively to eliminate noise. Monitor errors at scale without impacting throughput in production.
Expose the important events that led to each Java exception: debug logs, network requests, database queries, past errors.
Learn in which version a bug first appeared, merge duplicates, and know if things regress in a future release. Add commit data to automatically suggest an owner of each Log4j 2 error and instantly send deploy emails.
Just look at all the high-quality security features all accounts get, regardless of plan.
Triage quickly based on specific parameters like HTTP request, workflow stage, and hostname for each issue.
Set custom tags to recreate the error environment relevant to your app, business, and users.
Find answers to key questions: What version of JVM was the application running? In which app release did the Java bug occur?
When Spring Boot is configured to generate Git information every event triggered by Sentry will have a release field set to the current Git commit ID that will enable Monitor Release Health Sentry feature. More details here.
You can get started for free. Pricing depends on the number of monthly events, transactions, and attachments that you send Sentry. For more details, visit our pricing page.
Here’s a quick look at how Sentry handles your personal information (PII).
×We collect PII about people browsing our website, users of the Sentry service, prospective customers, and people who otherwise interact with us.
What if my PII is included in data sent to Sentry by a Sentry customer (e.g., someone using Sentry to monitor their app)? In this case you have to contact the Sentry customer (e.g., the maker of the app). We do not control the data that is sent to us through the Sentry service for the purposes of application monitoring.
Am I included?We may disclose your PII to the following type of recipients:
You may have the following rights related to your PII:
If you have any questions or concerns about your privacy at Sentry, please email us at [email protected].
If you are a California resident, see our Supplemental notice.