-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlog4net.config
23 lines (23 loc) · 1.01 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
<log4net>
<root>
<level value="ALL" />
<appender-ref ref="console" />
<appender-ref ref="file" />
</root>
<appender name="console" type="log4net.Appender.FloodConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%level %property{StartTimestamp}%property{EndTimestamp} - %property{Message}%newline" />
</layout>
</appender>
<appender name="file" type="log4net.Appender.FloodRollingAppender">
<file type="log4net.Util.PatternString" value="%property{LogFilePath}" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="5" />
<maximumFileSize value="10MB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%property{StartTimestamp}%property{EndTimestamp} [%thread] %level - %property{Message}%newline" />
</layout>
</appender>
</log4net>