Example usage for android.util Log e

List of usage examples for android.util Log e

Introduction

In this page you can find the example usage for android.util Log e.

Prototype

public static int e(String tag, String msg, Throwable tr) 

Source Link

Document

Send a #ERROR log message and log the exception.

Usage

From source file:Main.java

public static void logException(String tag, Throwable ex) {
    Log.e(tag, ex.getLocalizedMessage(), ex);
}

From source file:Main.java

public static void error(String message, Throwable t) {
    Log.e(tag, message, t);
}

From source file:Main.java

public static void loggingError(String logString, Exception ex) {
    if (LOG)
        Log.e("KORA.COM", logString, ex);
}

From source file:Main.java

public static void showException(Context parent, Throwable ex) {
    if (ex != null) {
        Log.e(parent.getClass().getSimpleName(), ex.getLocalizedMessage(), ex);
        new AlertDialog.Builder(parent).setTitle("Error").setMessage(ex.getLocalizedMessage())
                .setNeutralButton("Close", null).show();
    }//from   w ww.j  a va2s.  c o m
}

From source file:Main.java

public static void e(String message, Exception e) {

    if (!isLog) {
        return;//  w w  w  . j  a v a  2 s  .  c o  m
    }
    Log.e("CommonLog", message, e);

}

From source file:Main.java

public static void e(Throwable e) {
    if (!DEBUG) {
        return;
    }
    Log.e(TAG, e.getMessage(), e);
}

From source file:Main.java

public static void logE(Throwable str) {
    //if(BuildConfig.DEBUG)
    Log.e("ATN::", "Throwable", str);
}

From source file:Main.java

public static void error(String paramString, Throwable paramThrowable) {
    Log.e("WLDroidGap", getMsgNotNull(paramString), paramThrowable);
}

From source file:Main.java

public static void e(String from, Throwable e, Object... params) {
    try {/*from w w w.j  a va2 s .co  m*/
        Log.e(TAG, generateLogMessage(from, params), e);
    } catch (Exception ex) {
        System.out.println("[" + TAG + "] - " + generateLogMessage(from, params));
    }
}

From source file:Main.java

@SuppressWarnings("unused")
public static void LOGE(final String tag, String message, Throwable cause) {
    Log.e(tag, message, cause);
}