Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/LoggingConfigurator.java @ 8203:238fc722f87a
sed 's/logger/log/g' src/**/*.java
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 13:19:22 +0200 |
parents | ea9eef426962 |
children |
comparison
equal
deleted
inserted
replaced
8202:e4606eae8ea5 | 8203:238fc722f87a |
---|---|
12 import org.apache.log4j.PropertyConfigurator; | 12 import org.apache.log4j.PropertyConfigurator; |
13 | 13 |
14 | 14 |
15 public class LoggingConfigurator { | 15 public class LoggingConfigurator { |
16 | 16 |
17 private static final Logger logger = | 17 private static final Logger log = |
18 Logger.getLogger(LoggingConfigurator.class); | 18 Logger.getLogger(LoggingConfigurator.class); |
19 | 19 |
20 | 20 |
21 private LoggingConfigurator() { | 21 private LoggingConfigurator() { |
22 } | 22 } |
23 | 23 |
24 public static void init(String log4jProperties) { | 24 public static void init(String log4jProperties) { |
25 if (log4jProperties != null && log4jProperties.length() > 0) { | 25 if (log4jProperties != null && log4jProperties.length() > 0) { |
26 PropertyConfigurator.configure(log4jProperties); | 26 PropertyConfigurator.configure(log4jProperties); |
27 logger.info("Log4J logging initialized."); | 27 log.info("Log4J logging initialized."); |
28 } | 28 } |
29 else { | 29 else { |
30 System.out.println("Error while setting up Log4J configuration."); | 30 System.out.println("Error while setting up Log4J configuration."); |
31 } | 31 } |
32 | 32 |