Enterprise Single Sign-On for All

Overview

Sentry allows you to track logs and error in real time. It provides insight into production deployments and information to reproduce and fix crashes.

Configuration

Support is enabled by including the following dependency in the WAR overlay:

1
2
3
4
5
<dependency>
  <groupId>org.apereo.cas</groupId>
  <artifactId>cas-server-support-sentry</artifactId>
  <version>${cas.version}</version>
</dependency>

The Logging configuration file must be adjusted to match the following:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<Configuration ... packages="...,org.apache.logging.log4j.core,com.getsentry.raven.log4j2">
    <Appenders>
        <Raven name="Sentry">
          <dsn><!-- provided by sentry --></dsn>
          <tags>tag1:value1,tag2:value2</tags>
        </Raven>
    ...
    </Appenders>
    ...
    <Loggers>
        ...
        <AsyncLogger name="org.apereo" level="info" additivity="false" includeLocation="true">
            <AppenderRef ref="casConsole"/>
            <AppenderRef ref="casFile"/>
            <AppenderRef ref="Sentry"/>
        </AsyncLogger>
        ...
    </Loggers>
...
</Configuration>

The Sentry appender can be mapped to any of the available logger elements defined.