# HG changeset patch # User Ingo Weinzierl # Date 1269273246 0 # Node ID 8c4638abd518169c4936e84ce6a2805643c8be6b # Parent efe752c4f8b244e3ce148a7582172858b20b86f0 Installed a SLF4J bridge to route incoming jul logs (used by restlet) to log4j. artifacts/trunk@820 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r efe752c4f8b2 -r 8c4638abd518 ChangeLog --- a/ChangeLog Mon Mar 22 09:03:30 2010 +0000 +++ b/ChangeLog Mon Mar 22 15:54:06 2010 +0000 @@ -1,3 +1,12 @@ +2010-03-22 Ingo Weinzierl + + * artifact-database/src/main/java/de/intevation/artifactdatabase/App.java: + Install a SLF4JBridgeHandler after logging is configured. This handler is + used to route incoming java.util.logging logs to SLF4J. In our case, we + route this incoming log to our log4j logger. + + * artifact-database/pom.xml: Added dependencies for SLF4J 1.5.11. + 2010-03-22 Ingo Weinzierl Issue208 (Remove special data of an 'out'-target before exporting diff -r efe752c4f8b2 -r 8c4638abd518 artifact-database/pom.xml --- a/artifact-database/pom.xml Mon Mar 22 09:03:30 2010 +0000 +++ b/artifact-database/pom.xml Mon Mar 22 15:54:06 2010 +0000 @@ -84,5 +84,15 @@ log4j 1.2.14 + + org.slf4j + jul-to-slf4j + 1.5.11 + + + org.slf4j + slf4j-log4j12 + 1.5.11 + diff -r efe752c4f8b2 -r 8c4638abd518 artifact-database/src/main/java/de/intevation/artifactdatabase/App.java --- a/artifact-database/src/main/java/de/intevation/artifactdatabase/App.java Mon Mar 22 09:03:30 2010 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/App.java Mon Mar 22 15:54:06 2010 +0000 @@ -8,6 +8,9 @@ import org.apache.log4j.PropertyConfigurator; +import org.slf4j.bridge.SLF4JBridgeHandler; + + /** * Starting point of the artifact database. * @@ -25,6 +28,7 @@ if (propFile.isFile() && propFile.canRead()) { try { PropertyConfigurator.configure(propFile.toURI().toURL()); + SLF4JBridgeHandler.install(); } catch (MalformedURLException mue) { mue.printStackTrace(System.err);