package org.edx.mobile.logger;

import android.content.Context;

/**
 * Created by shahid on 22/1/15.
 */
public class Logger {

    private String tag;

    /**
     * Initializes logger. Logs are disabled for release builds
     * during initialization.
     * @param context
     */
    public static void init(Context context) {
        LogUtil.init(context);
    }

    private Logger() {}

    public Logger(Class<?> cls) {
        this.tag = cls.getName();
    }

    public Logger(String tag) {
        this.tag = tag;
    }

    public void error(Throwable ex) {
        LogUtil.error(this.tag, "", ex);
    }

    public void warn(String log) {
        LogUtil.warn(this.tag, log);
    }

    public void debug(String log) {
        LogUtil.debug(this.tag, log);
    }
}

@@ -58,16 +58,46 @@
 ntext;%0A%0A
+import java.io.Serializable;%0A%0A
 /**%0A * C
@@ -149,16 +149,40 @@
  Logger 
+implements Serializable 
 %7B%0A%0A    p

Make Logger serializable so that object retains across activity re-creations