Skip to content

Integration for Sentry Logs through Logback #4404

@adinauer

Description

@adinauer
Member

Problem Statement

For the logs feature we want to have an integration for Logback.

Solution Brainstorm

No response

Activity

mfillon

mfillon commented on Jun 3, 2025

@mfillon

Looking forward to this integration. 👍

I think the most straightforward solution would be to implement a custom appender for Sentry Logs.

See Logback's doc, Baeldung article and logz.io implementation (or other examples).

moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jun 3, 2025
moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jun 4, 2025
adinauer

adinauer commented on Jun 12, 2025

@adinauer
MemberAuthor

Hey @mfillon thanks for the feedback. We already have a custom SentryAppender which we're planning to make configurable to also send logs >= a certain log level to Sentry as logs. We already have similar config for breadcrumb and error event levels so this should fit in nicely.

adinauer

adinauer commented on Jun 25, 2025

@adinauer
MemberAuthor

We have just released https://github.com/getsentry/sentry-java/releases/tag/8.15.0 which includes support for sending log messages from Logback to Sentry using the new structured logs.

Docs are available for pure Logback usage as well as combining Spring Boot and Logback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @mfillon@kahest@adinauer

      Issue actions

        Integration for Sentry Logs through Logback · Issue #4404 · getsentry/sentry-java