Configuration Example

You can configure values such as environment and release. See the configuration page for an in-depth explanation of each property.

Copied
<appender name="Sentry" class="io.sentry.logback.SentryAppender">
    <options>
        <!-- NOTE: Replace the test DSN below with your DSN to see the events from this app in sentry.io -->
        <dsn>https://examplePublicKey@o0.ingest.sentry.io/0</dsn>
        <shutdownTimeout>2000</shutdownTimeout>
        <flushTimeoutMillis>15000</flushTimeoutMillis>
        <debug>false</debug>
        <maxBreadcrumbs>100</maxBreadcrumbs>
        <release>my-project-name@2.3.12</release>
        <environment>production</environment>
        <sampleRate>1.0</sampleRate>
        <attachThreads>false</attachThreads>
        <attachStacktrace>false</attachStacktrace>
        <serverName>host-4</serverName>
        <connectionTimeoutMillis>5000</connectionTimeoutMillis>
        <readTimeoutMillis>5000</readTimeoutMillis>
    </options>
</appender>
You can edit this page on GitHub.