forked from SCToolsfactory/SCJMapper-V2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4net.config
34 lines (29 loc) · 1.21 KB
/
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
33
34
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<log4net>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="trace.log"/>
<!--Indicates whether the file should be appended to or overwritten.-->
<appendToFile value="true"/>
<!--Roll files based only on the size of the file-->
<rollingStyle value="Size"/>
<!--The maximum number of backup files that are kept before the oldest is erased.-->
<maxSizeRollBackups value="10"/>
<maximumFileSize value="500KB"/>
<!--true if always should be logged to the same file, otherwise false.-->
<staticLogFileName value="true"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date|%-5level|%logger|%message%newline%exception"/>
</layout>
</appender>
<!-- Setup the root category, add the appenders and set the default level. -->
<root>
<level value="ALL"/> <!-- default: INFO - extensive: ALL -->
<appender-ref ref="RollingFileAppender"/>
</root>
</log4net>
</configuration>