forked from huaweicloud/huaweicloud-sdk-dotnet-obs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLog4Net.config
More file actions
23 lines (22 loc) · 780 Bytes
/
Log4Net.config
File metadata and controls
23 lines (22 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<log4net>
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="logs/OBS-SDK.log"/>
<appendToFile value="true"/>
<rollingStyle value="Size"/>
<maxSizeRollBackups value="20"/>
<maximumFileSize value="10MB"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level - %message%newline"/>
</layout>
</appender>
<root>
<level value="WARN"/>
<appender-ref ref="RollingLogFileAppender"/>
</root>
</log4net>
</configuration>