Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/LoggingConfigurator.java @ 5838:5aa05a7a34b7
Rename modules to more fitting names.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 15:23:37 +0200 |
parents | flys-client/src/main/java/org/dive4elements/river/client/server/LoggingConfigurator.java@821a02bbfb4e |
children | 172338b1407f |
comparison
equal
deleted
inserted
replaced
5837:d9901a08d0a6 | 5838:5aa05a7a34b7 |
---|---|
1 package org.dive4elements.river.client.server; | |
2 | |
3 import org.apache.log4j.Logger; | |
4 import org.apache.log4j.PropertyConfigurator; | |
5 | |
6 | |
7 public class LoggingConfigurator { | |
8 | |
9 private static final Logger logger = | |
10 Logger.getLogger(LoggingConfigurator.class); | |
11 | |
12 | |
13 private LoggingConfigurator() { | |
14 } | |
15 | |
16 public static void init(String log4jProperties) { | |
17 if (log4jProperties != null && log4jProperties.length() > 0) { | |
18 PropertyConfigurator.configure(log4jProperties); | |
19 logger.info("Log4J logging initialized."); | |
20 } | |
21 else { | |
22 System.out.println("Error while setting up Log4J configuration."); | |
23 } | |
24 | |
25 System.out.println("LoggingConfigurator.init finished"); | |
26 } | |
27 } | |
28 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |