Sentry-Java for log4j

log4j appender allowing to send logs to the Sentry-Java client.

License

License

GroupId

GroupId

io.sentry
ArtifactId

ArtifactId

sentry-log4j
Last Version

Last Version

1.7.30
Release Date

Release Date

Type

Type

jar
Description

Description

Sentry-Java for log4j
log4j appender allowing to send logs to the Sentry-Java client.

Download sentry-log4j

How to add to project

<!-- https://jarcasting.com/artifacts/io.sentry/sentry-log4j/ -->
<dependency>
    <groupId>io.sentry</groupId>
    <artifactId>sentry-log4j</artifactId>
    <version>1.7.30</version>
</dependency>
// https://jarcasting.com/artifacts/io.sentry/sentry-log4j/
implementation 'io.sentry:sentry-log4j:1.7.30'
// https://jarcasting.com/artifacts/io.sentry/sentry-log4j/
implementation ("io.sentry:sentry-log4j:1.7.30")
'io.sentry:sentry-log4j:jar:1.7.30'
<dependency org="io.sentry" name="sentry-log4j" rev="1.7.30">
  <artifact name="sentry-log4j" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.sentry', module='sentry-log4j', version='1.7.30')
)
libraryDependencies += "io.sentry" % "sentry-log4j" % "1.7.30"
[io.sentry/sentry-log4j "1.7.30"]

Dependencies

compile (2)

Group / Artifact Type Version
io.sentry : sentry jar 1.7.30
log4j : log4j jar 1.2.17

test (11)

Group / Artifact Type Version
org.mockito : mockito-core jar 2.28.2
org.hamcrest : hamcrest-core jar 1.3
org.hamcrest : hamcrest-library jar 1.3
junit : junit jar 4.12
pl.pragmatists : JUnitParams jar 1.1.1
com.github.tomakehurst : wiremock-standalone jar 2.5.1
io.sentry : sentry test-jar 1.7.30
com.fasterxml.jackson.core : jackson-databind jar 2.10.0
com.fasterxml.jackson.core : jackson-annotations jar 2.10.0
org.slf4j : slf4j-log4j12 jar 1.7.24
org.slf4j : slf4j-api jar 1.7.24

Project Modules

There are no modules declared in this project.


Sentry SDK for Java and Android

AppVeyor GH Workflow Tests codecov

Packages Bintray Maven Central Android API
sentry-android sentry-android Maven Central 16
sentry-android-core sentry-android-core Maven Central 14
sentry-android-ndk sentry-android-ndk Maven Central 16
sentry-android-timber sentry-android-timber Maven Central 14
sentry sentry Maven Central 14
sentry-servlet sentry-servlet Maven Central
sentry-spring-boot-starter sentry-spring-boot-starter Maven Central
sentry-spring sentry-spring Maven Central
sentry-logback sentry-logback Maven Central
sentry-log4j2 sentry-log4j2 Maven Central

Java SDK 3.0 Docs

The Java SDK documentation can be found on docs.sentry.io.

Java SDK version 1.x can still be found here.

Javadocs generated from source code.

Android Docs

That's the initial page of the release 2.x and its docs.

Releases from sentry-android 2.x and its changelogs.

Migration page from sentry-android 1.x and 2.x to sentry-android 3.x.

Sentry Android Gradle Plugin repo sits on another repo

Blog posts

New Android SDK How-to.

Adding Native support to our Android SDK.

Samples

Sample App. with Sentry Android SDK and Sentry Gradle Plugin.

Sample for Development.

Development

This repository includes sentry-native as a git submodule. To build against sentry-native checked-out elsewhere in your file system, create a symlink sentry-android-ndk/sentry-native-local that points to your sentry-native directory. For example, if you had sentry-native checked-out in a sibling directory to this repo:

ln -s ../../sentry-native sentry-android-ndk/sentry-native-local

which will be picked up by gradle and used instead of the git submodule. This directory is also included in .gitignore not to be shown as pending changes.

Android: Note on multiple crash reporting SDKs

Installing multiple crash reporting SDKs isn't supported. They race each other on taking the signal handler (for native crashes) and it often results in only 1 of the SDKs capturing the error. This is also due to the limitations of what can run there (like allocating memory etc) and how long the app lives. This limitation also affects the Java layer, given that the operating system will kill the app before more than one SDK is able to process the crash and save the error to storage.

Sentry Self Hosted Compatibility

Since version 3.0.0 of this SDK, Sentry version >= v20.6.0 is required. This only applies to on-premise Sentry, if you are using sentry.io no action is needed.

Resources

  • Java Documentation
  • Android Documentation
  • Forum
  • Discord
  • Stack Overflow
  • Code of Conduct
  • Twitter Follow
io.sentry

Sentry

Real-time crash reporting for your web apps, mobile apps, and games.

Versions

Version
1.7.30
1.7.29
1.7.28
1.7.27
1.7.26
1.7.25
1.7.24
1.7.23
1.7.22
1.7.21
1.7.20
1.7.19
1.7.18
1.7.17
1.7.16
1.7.15
1.7.14
1.7.13
1.7.12
1.7.11
1.7.10
1.7.9
1.7.8
1.7.7
1.7.6
1.7.5
1.7.4
1.7.3
1.7.2
1.7.1
1.7.0
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.1
1.3.0
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
1.0.0-beta3
1.0.0-beta2
1.0.0-beta