Skip to content

Commit d2b23d1

Browse files
authored
Restore support for Log4J 1 (#10)
1 parent 559271a commit d2b23d1

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

labkey-client-api/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
*Released* : TBD
55

66
* Fix pre-population of session ID and CSRF token in Connection
7-
* Identify target server with a `URI` instead of a `String`
7+
* Identify target server with a `URI` instead of a `String`
8+
* Add support for Log4J 2
89

910
## version 1.3.0
1011
*Released* : 16 June 2020

labkey-client-api/src/log4j.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
3+
4+
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
5+
<appender name="console" class="org.apache.log4j.ConsoleAppender">
6+
<param name="Target" value="System.out"/>
7+
<layout class="org.apache.log4j.PatternLayout">
8+
<param name="ConversionPattern" value="%-5p %c{1} - %m%n"/>
9+
</layout>
10+
</appender>
11+
12+
<root>
13+
<priority value ="error" />
14+
<appender-ref ref="console" />
15+
</root>
16+
17+
</log4j:configuration>

0 commit comments

Comments
 (0)