Mercurial > dive4elements > river
comparison flys-client/src/main/java/org/dive4elements/river/client/server/LoggingConfigurator.java @ 5834:f507086aa94b
Repaired internal references.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 12:31:32 +0200 |
parents | flys-client/src/main/java/de/intevation/flys/client/server/LoggingConfigurator.java@42d6cf6e10b7 |
children | 821a02bbfb4e |
comparison
equal
deleted
inserted
replaced
5833:a2bdc0f524e8 | 5834:f507086aa94b |
---|---|
1 package de.intevation.flys.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 : |