diff options
-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); + } } /************************************************************************* |