From 2ff18da8c88b6b103990c30c99d67c2e13ddd088 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 1 Dec 2014 17:15:38 +0100 Subject: actually use the backend if it is set :) --- src/main/java/com/btr/proxy/util/Logger.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); + } } /************************************************************************* -- cgit v1.2.3-55-g7522