---
title: "Configuration Example"
description: "Review an example of configuration for Logback."
url: https://docs.sentry.io/platforms/java/guides/logback/configuration/configuration-example/
---

# Configuration Example | Sentry for Logback

You can configure values such as `environment` and `release`. [See the configuration page](https://docs.sentry.io/platforms/java/guides/logback/configuration/options.md) for an in-depth explanation of each property.

```xml
<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>___PUBLIC_DSN___</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>
```
