/*
   Copyright 2015 Jianan - qinxiandiqi@foxmail.com

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */
package com.qinxiandiqi.easyandroid.base.util;

/**
 * Created by Jianan on 2015/9/30.
 */
public class LogUtil {

   public static LogUtil mLogUtil;

   public static synchronized LogUtil getInstance(){
      if(mLogUtil == null){
         mLogUtil = new LogUtil();
      }
      return mLogUtil;
   }

   private LogUtil(){

   }


}

@@ -649,16 +649,42 @@
 .util;%0A%0A
+import android.util.Log;%0A%0A
 /**%0A * C
@@ -778,16 +778,103 @@
 gUtil;%0A%0A
+   private String DEFAULT_LOG_TAG = %22easyandroid%22;%0A   private boolean isDebug = true;%0A%0A
    publi
@@ -1047,11 +1047,1327 @@
 %0A%0A   %7D%0A%0A
+   public void setTag(String tag)%7B%0A      DEFAULT_LOG_TAG = tag;%0A   %7D%0A%0A   public void setDebug(boolean isDebug)%7B%0A      this.isDebug = isDebug;%0A   %7D%0A%0A   public void i(String msg)%7B%0A      log(Log.INFO, msg, null);%0A   %7D%0A%0A   public void i(String msg, Throwable throwable)%7B%0A      log(Log.INFO, msg, throwable);%0A   %7D%0A%0A   public void e(String msg)%7B%0A      log(Log.ERROR, msg, null);%0A   %7D%0A%0A   public void e(String msg, Throwable throwable)%7B%0A      log(Log.ERROR, msg, throwable);%0A   %7D%0A%0A   public void d(String msg)%7B%0A      log(Log.DEBUG, msg, null);%0A   %7D%0A%0A   public void d(String msg, Throwable throwable)%7B%0A      log(Log.DEBUG, msg, throwable);%0A   %7D%0A%0A   public void w(String msg)%7B%0A      log(Log.WARN, msg, null);%0A   %7D%0A%0A   public void w(String msg, Throwable throwable)%7B%0A      log(Log.WARN, msg, throwable);%0A   %7D%0A%0A   public void v(String msg)%7B%0A      log(Log.VERBOSE, msg, null);%0A   %7D%0A%0A   public void v(String msg, Throwable throwable)%7B%0A      log(Log.VERBOSE, msg, throwable);%0A   %7D%0A   private int log(int type, String msg, Throwable throwable)%7B%0A      if(isDebug)%7B%0A         if(throwable != null)%7B%0A            return Log.println(type, DEFAULT_LOG_TAG, msg + %22%5Cn%22 + Log.getStackTraceString(throwable));%0A         %7Delse%7B%0A            return Log.println(type, DEFAULT_LOG_TAG, msg);%0A         %7D%0A      %7Delse%7B%0A         return 0;%0A      %7D%0A   %7D
 %0A%7D%0A

add log methods.