Skip to content

Commit

Permalink
aother NewAsyncAppender example
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
  • Loading branch information
ceki committed Dec 15, 2024
1 parent ecbf430 commit 715aefb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/test/input/xml/newAsyncAppender1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<log4j:configuration debug="true"
xmlns:log4j='http://jakarta.apache.org/log4j/'>

<appender name="FILE" class="org.apache.log4j.FileAppender">

<param name="File" value="target/test-output/temp.A1" />
<param name="Append" value="false" />

<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %c{2} - %m%n"/>
</layout>
</appender>


<appender name="ASYNC" class="org.apache.log4j.NewAsyncAppender">
<param name="QueueSize" value="512"/>
<appender-ref ref="FILE"/>
</appender>

<root>
<level value="info"/>
<appender-ref ref="ASYNC"/>
</root>

</log4j:configuration>

0 comments on commit 715aefb

Please sign in to comment.