Skip to content

Commit

Permalink
log4j configuration fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
rotty3000 committed Nov 8, 2016
1 parent 650ec56 commit e2a4c01
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions jax-rs.log4j-configuration/bnd.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fragment-Host: log4j
15 changes: 15 additions & 0 deletions jax-rs.log4j-configuration/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.aries</groupId>
<artifactId>org.apache.aries.jax.rs</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>org.apache.aries.jax.rs.log4j-configuration</artifactId>
<packaging>jar</packaging>
<description>Apache Aries JAX-RS Log4J Configuration Fragment</description>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=ERROR, A1

# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
</build>
<modules>
<module>jax-rs.whiteboard</module>
<module>jax-rs.log4j-configuration</module>
<module>jax-rs.itests</module>
<module>jax-rs.itests-run</module>
<module>jax-rs.example</module>
Expand Down

0 comments on commit e2a4c01

Please sign in to comment.