-
-
Notifications
You must be signed in to change notification settings - Fork 206
/
app.config
32 lines (32 loc) · 1.48 KB
/
app.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender" >
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="SentryAppender" type="Sentry.Log4Net.SentryAppender, Sentry.Log4Net">
<!--Defining the DSN here allows log4net integration to initialize the SDK-->
<!--You can leave the DSN out of this configuration file and initialize the SDK-->
<!--via code (SentrySdk.Init) or via another integration like ASP.NET-->
<!--The SDK only needs to be initialized once, you can choose where to do that-->
<Dsn value="https://eb18e953812b41c3aeb042e666fd3b5c@o447951.ingest.sentry.io/5428537" />
<!--Sends the log event Identity value as the user-->
<SendIdentity value="true" />
<Environment value="dev" />
<!--If MinimumEventLevel is specified, every event above threshold
and below MinimumEventLevel will be added as a breadcrumb.-->
<MinimumEventLevel value="ERROR" />
<threshold value="INFO" />
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="SentryAppender" />
<appender-ref ref="ConsoleAppender" />
</root>
</log4net>
</configuration>