Skip to content

Instantly share code, notes, and snippets.

@mariciv
Created June 24, 2014 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariciv/d44accb157d09dbf04dd to your computer and use it in GitHub Desktop.
Save mariciv/d44accb157d09dbf04dd to your computer and use it in GitHub Desktop.
package co.infinum.mojvip.rs.helpers;
import android.util.Log;
import co.infinum.mojvip.rs.BuildConfig;
import co.infinum.mojvip.rs.constants.Constants;
/**
* Created by dino on 04/03/14.
*/
public class Logger {
public static final String TAG = Constants.LOGTAG;
public static void d(String message) {
if (BuildConfig.DEBUG && message != null) {
Log.d(TAG, message);
}
}
public static void e(String message) {
if (BuildConfig.DEBUG && message != null) {
Log.e(TAG, message);
}
}
public static void i(String message) {
if (BuildConfig.DEBUG && message != null) {
Log.i(TAG, message);
}
}
public static void v(String message) {
if (BuildConfig.DEBUG && message != null) {
Log.v(TAG, message);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment