Skip to content

Commit

Permalink
log4j removed in favor to slf4j; fixes #91 and fixes #170
Browse files Browse the repository at this point in the history
  • Loading branch information
typekpb committed Dec 12, 2013
1 parent 6841ff0 commit 47f31c0
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions src/test/resources/log4j-in-test.xml
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
P6Spy
%%
Copyright (C) 2013 P6Spy
%%
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#L%
-->

<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false" reset="true">

<appender name="CONSOLE" class="com.p6spy.engine.spy.appender.Log4jLoggerTest$Log4JTestApppender">
<param name="Target" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c.%M] %m%n" />
</layout>
</appender>


<category name="com.p6spy">
<priority value="DEBUG" />
</category>

<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE" />
</root>

</log4j:configuration>

0 comments on commit 47f31c0

Please sign in to comment.