log4j configuration fragment
Project: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/repo Commit: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/commit/e2a4c01b Tree: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/tree/e2a4c01b Diff: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/diff/e2a4c01b Branch: refs/heads/master Commit: e2a4c01b82ec9bd0cd8c1c776905ed2d964ba44a Parents: 650ec56 Author: Raymond Auge <[email protected]> Authored: Tue Nov 8 14:24:18 2016 -0500 Committer: Raymond Auge <[email protected]> Committed: Tue Nov 8 14:24:18 2016 -0500 ---------------------------------------------------------------------- jax-rs.log4j-configuration/bnd.bnd | 1 + jax-rs.log4j-configuration/pom.xml | 15 +++++++++++++++ .../src/main/resources/log4j.properties | 9 +++++++++ pom.xml | 1 + 4 files changed, 26 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/e2a4c01b/jax-rs.log4j-configuration/bnd.bnd ---------------------------------------------------------------------- diff --git a/jax-rs.log4j-configuration/bnd.bnd b/jax-rs.log4j-configuration/bnd.bnd new file mode 100644 index 0000000..a63d4d6 --- /dev/null +++ b/jax-rs.log4j-configuration/bnd.bnd @@ -0,0 +1 @@ +Fragment-Host: log4j \ No newline at end of file http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/e2a4c01b/jax-rs.log4j-configuration/pom.xml ---------------------------------------------------------------------- diff --git a/jax-rs.log4j-configuration/pom.xml b/jax-rs.log4j-configuration/pom.xml new file mode 100644 index 0000000..25c5358 --- /dev/null +++ b/jax-rs.log4j-configuration/pom.xml @@ -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> http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/e2a4c01b/jax-rs.log4j-configuration/src/main/resources/log4j.properties ---------------------------------------------------------------------- diff --git a/jax-rs.log4j-configuration/src/main/resources/log4j.properties b/jax-rs.log4j-configuration/src/main/resources/log4j.properties new file mode 100644 index 0000000..a136842 --- /dev/null +++ b/jax-rs.log4j-configuration/src/main/resources/log4j.properties @@ -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 http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/e2a4c01b/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 6d81c11..0059f50 100644 --- a/pom.xml +++ b/pom.xml @@ -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>
