Android Open Source - mirror-notify-android Logger






From Project

Back to project page mirror-notify-android.

License

The source code is released under:

Apache License

If you think the Android project mirror-notify-android 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

package com.rahulrav.glassnotify.util;
/* w w w. j av a2s.c  om*/
import android.util.Log;
import com.rahulrav.glassnotify.BuildConfig;

/**
 * The application Logger.
 */
public final class Logger {

  private static final String TAG = "GlassNotifier";

  public static void d(final String message) {
    if (BuildConfig.DEBUG) {
      Log.d(TAG, message);
    }
  }

  public static void d(final String message, final Throwable throwable) {
    if (BuildConfig.DEBUG) {
      Log.d(TAG, message, throwable);
    }
  }

  public static void i(final String message) {
    if (BuildConfig.DEBUG) {
      Log.i(TAG, message);
    }
  }

  public static void i(final String message, final Throwable throwable) {
    if (BuildConfig.DEBUG) {
      Log.i(TAG, message, throwable);
    }
  }

  public static void e(final String message) {
    Log.e(TAG, message);
  }

  public static void e(final String message, final Throwable throwable) {
    Log.e(TAG, message, throwable);
  }

}




Java Source Code List

com.rahulrav.glassnotify.AppItemAdapter.java
com.rahulrav.glassnotify.AppItemViewHolder.java
com.rahulrav.glassnotify.AppItem.java
com.rahulrav.glassnotify.MainActivity.java
com.rahulrav.glassnotify.NotificationListenerService.java
com.rahulrav.glassnotify.NotifierService.java
com.rahulrav.glassnotify.WhitelistActivity.java
com.rahulrav.glassnotify.util.IOUtils.java
com.rahulrav.glassnotify.util.Logger.java