Android Open Source - Curio_android_SDK Curio Logger






From Project

Back to project page Curio_android_SDK.

License

The source code is released under:

Apache License

If you think the Android project Curio_android_SDK listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * Copyright (C) 2014 Turkcell// w w  w .j  a v a  2  s .c o m
 * 
 * Created by Can Ciloglu on 22 Tem 2014
 *
 */
package com.turkcell.curio.utils;

import com.turkcell.curio.BuildConfig;

/**
 * Logger class for controlling logging availability.
 * 
 * @author Can Ciloglu
 *
 */
public class CurioLogger {
  public static void i(String tag, String string) {
    if (CurioClientSettings.isLoggingEnabled()) {
      android.util.Log.i(tag, string);
    }
  }

  public static void e(String tag, String string) {
    if (CurioClientSettings.isLoggingEnabled()) {
      android.util.Log.e(tag, string);
    }
  }

  public static void d(String tag, String string) {
    if (CurioClientSettings.isLoggingEnabled() && BuildConfig.DEBUG) {
      android.util.Log.d(tag, string);
    }
  }

  public static void v(String tag, String string) {
    if (CurioClientSettings.isLoggingEnabled() && BuildConfig.DEBUG) {
      android.util.Log.v(tag, string);
    }
  }

  public static void w(String tag, String string) {
    if (CurioClientSettings.isLoggingEnabled()) {
      android.util.Log.w(tag, string);
    }
  }

  public static void i(String tag, String string, Throwable t) {
    if (CurioClientSettings.isLoggingEnabled()) {
      android.util.Log.i(tag, string, t);
    }
  }

  public static void e(String tag, String string, Throwable t) {
    if (CurioClientSettings.isLoggingEnabled()) {
      android.util.Log.e(tag, string, t);
    }
  }

  public static void d(String tag, String string, Throwable t) {
    if (CurioClientSettings.isLoggingEnabled() && BuildConfig.DEBUG) {
      android.util.Log.d(tag, string, t);
    }
  }

  public static void v(String tag, String string, Throwable t) {
    if (CurioClientSettings.isLoggingEnabled() && BuildConfig.DEBUG) {
      android.util.Log.v(tag, string, t);
    }
  }

  public static void w(String tag, String string, Throwable t) {
    if (CurioClientSettings.isLoggingEnabled()) {
      android.util.Log.w(tag, string, t);
    }
  }
}




Java Source Code List

com.turkcell.curio.CurioClient.java
com.turkcell.curio.CurioRequestProcessor.java
com.turkcell.curio.DBRequestProcessor.java
com.turkcell.curio.ICurioResultListener.java
com.turkcell.curio.INetworkConnectivityChangeListener.java
com.turkcell.curio.model.OfflineRequest.java
com.turkcell.curio.model.OnlineRequest.java
com.turkcell.curio.model.Screen.java
com.turkcell.curio.utils.Constants.java
com.turkcell.curio.utils.CurioClientSettings.java
com.turkcell.curio.utils.CurioDBContract.java
com.turkcell.curio.utils.CurioDBHelper.java
com.turkcell.curio.utils.CurioLogger.java
com.turkcell.curio.utils.CurioUtil.java
com.turkcell.curio.utils.NetworkUtil.java
com.turkcell.curio.utils.ParameterLoader.java
com.turkcell.curio.utils.PushUtil.java
com.turkcell.curio.utils.UUIDGenerator.java
com.turkcell.curio.utils.VisitorCodeManager.java
com.turkcell.curiosample.BlankActivity.java
com.turkcell.curiosample.MainActivity.java
com.turkcell.curiosample.PushNotificationBroadcastReceiver.java
com.turkcell.curiosample.PushNotificationIntentService.java