diff --git a/codenameone/pubnub-codenameone-3.5.2.cn1lib b/codenameone/pubnub-codenameone-3.5.2.cn1lib index 895a1f95b..12a641487 100644 Binary files a/codenameone/pubnub-codenameone-3.5.2.cn1lib and b/codenameone/pubnub-codenameone-3.5.2.cn1lib differ diff --git a/codenameone/src/com/pubnub/api/Logger.java b/codenameone/src/com/pubnub/api/Logger.java index e22a40fba..1f6575107 100644 --- a/codenameone/src/com/pubnub/api/Logger.java +++ b/codenameone/src/com/pubnub/api/Logger.java @@ -1,34 +1,40 @@ package com.pubnub.api; -//import org.slf4j.LoggerFactory; +import com.codename1.io.Log; class Cn1Logger { - - public Cn1Logger(Class c) { - - } - public void debug(String s) { - - } - public void trace(String s) { - - } - public void error(String s) { - - } - public void info(String s) { - - } -} + private Log log; + + public Cn1Logger(Class c) { + Log log = Log.getInstance(); + } + + public void debug(String s) { + log.p(s, Log.DEBUG); + } + + public void trace(String s) { + log.p(s,Log.INFO); + } + + public void error(String s) { + log.p(s,Log.ERROR); + } + + public void info(String s) { + log.p(s,Log.INFO); + } +} class Logger extends AbstractLogger { + private Class _class; private Cn1Logger log; + public Logger(Class _class) { this._class = _class; this.log = new Cn1Logger(this._class); - this.log = null; } @Override