-
Notifications
You must be signed in to change notification settings - Fork 0
/
Log4Net.config
32 lines (31 loc) · 898 Bytes
/
Log4Net.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"?>
<log4net debug="true">
<!-- log4net logging levels:
All (log everything)
Debug
Info
Warn
Error
Fatal
Off (don’t log anything)
-->
<root>
<level value="ALL" />
<appender-ref ref="file" />
</root>
<appender name="file" type="log4net.Appender.RollingFileAppender">
<file value="${LOCALAPPDATA}\StoCombatRealtime\logs\StoCombatRealtime.log" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="5" />
<maximumFileSize value="20MB" />
<staticLogFileName value="true" />
<filter type="log4net.Filter.LevelRangeFilter">
<levelMin value="ERROR" />
<levelMax value="FATAL" />
</filter>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %level %logger - %message%newline" />
</layout>
</appender>
</log4net>