diff options
author | Jonathan Bauer | 2014-12-01 17:15:38 +0100 |
---|---|---|
committer | Jonathan Bauer | 2014-12-01 17:15:38 +0100 |
commit | 2ff18da8c88b6b103990c30c99d67c2e13ddd088 (patch) | |
tree | 9a1074f44cda4a7edd8be048938f61ce8c4e8ff7 | |
parent | Revert "hack: log4j logger support" (diff) | |
download | proxy-vole-2ff18da8c88b6b103990c30c99d67c2e13ddd088.tar.gz proxy-vole-2ff18da8c88b6b103990c30c99d67c2e13ddd088.tar.xz proxy-vole-2ff18da8c88b6b103990c30c99d67c2e13ddd088.zip |
actually use the backend if it is set :)
-rw-r--r-- | src/main/java/com/btr/proxy/util/Logger.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/btr/proxy/util/Logger.java b/src/main/java/com/btr/proxy/util/Logger.java index f434699..4bb17b3 100644 --- a/src/main/java/com/btr/proxy/util/Logger.java +++ b/src/main/java/com/btr/proxy/util/Logger.java @@ -68,7 +68,11 @@ public class Logger { ************************************************************************/ public static void log(Class<?> clazz, LogLevel loglevel, String msg, Object ...params) { - System.out.println(MessageFormat.format(msg, params)); + if (backend == null) { + System.out.println(MessageFormat.format(msg, params)); + } else { + backend.log(clazz, loglevel, msg, params); + } } /************************************************************************* |