forked from tangxuehua/enode
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlog4net.config
58 lines (58 loc) · 2.28 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<log4net debug="false">
<appender name="rollingFile" type="log4net.Appender.RollingFileAppender,log4net">
<param name="File" value="logs/default.log"/>
<param name="AppendToFile" value="true"/>
<param name="RollingStyle" value="Date"/>
<param name="DatePattern" value=".yyyy-MM-dd"/>
<param name="StaticLogFileName" value="true"/>
<param name="CountDirection" value="1"/>
<layout type="log4net.Layout.PatternLayout,log4net">
<param name="ConversionPattern" value="%date %5level %logger - %message%newline"/>
</layout>
</appender>
<appender name="equeueMessageSendLogFille" type="log4net.Appender.RollingFileAppender,log4net">
<param name="File" value="logs/equeue_message.log"/>
<param name="AppendToFile" value="true"/>
<param name="RollingStyle" value="Date"/>
<param name="DatePattern" value=".yyyy-MM-dd"/>
<param name="StaticLogFileName" value="true"/>
<param name="CountDirection" value="1"/>
<layout type="log4net.Layout.PatternLayout,log4net">
<param name="ConversionPattern" value="%date %5level %logger - %message%newline"/>
</layout>
</appender>
<appender name="console" type="log4net.Appender.ConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%5level %logger - %message%newline" />
</layout>
</appender>
<root>
<!--all priority options: OFF、FATAL、ERROR, WARN, INFO, DEBUG, ALL-->
<priority value="INFO"/>
<appender-ref ref="console"/>
</root>
<logger name="EQueue" additivity="false">
<level value="INFO" />
<appender-ref ref="rollingFile"/>
</logger>
<logger name="ENode" additivity="false">
<level value="INFO" />
<appender-ref ref="rollingFile"/>
</logger>
<logger name="ENode.Domain.Impl.DefaultMemoryCache" additivity="false">
<level value="DEBUG" />
<appender-ref ref="rollingFile"/>
</logger>
<logger name="ECommon" additivity="false">
<level value="INFO" />
<appender-ref ref="rollingFile"/>
</logger>
<logger name="ENode.EQueue" additivity="false">
<level value="INFO" />
<appender-ref ref="rollingFile"/>
</logger>
<logger name="ENode.EQueue.SendQueueMessageService" additivity="false">
<level value="DEBUG" />
<appender-ref ref="equeueMessageSendLogFille"/>
</logger>
</log4net>