-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
35 lines (30 loc) · 1.32 KB
/
README
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
log4j example snippet:
<appender name="ROLLINGFILE" class="com.holmbech.PositronAppender">
<param name="File" value="log4j.txt"/>
<param name="Append" value="true"/>
<param name="MaxFileSize" value="5MB"/>
<param name="MaxBackupIndex" value="5"/>
<param name="MinimumLevelToAdd" value="Level.INFO"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p %c{5} - %m%n"/>
</layout>
</appender>
AppenderAttachable version:
<appender name="ROLLINGFILE" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="log4j.txt" />
<param name="Append" value="true" />
<param name="MaxFileSize" value="5MB" />
<param name="MaxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p %c{5} - %m%n" />
</layout>
</appender>
<appender name="POSITRONIC" class="com.holmbech.PluggablePositronAppender">
<appender-ref "ROLLINGFILE" />
<param name="MaximumLevelToStore" value="Level.WARN" />
<param name="BufferSize" value="50" />
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="POSITRONIC" />
</root>