List of utility methods to do Log
void | logw(String msg) logw if (!debug) { return; Log.w("ldx", "" + msg); |
void | log(String text) log Log.i("AEL", text);
|
void | logError(Object errorClass, String msg, Exception e) log Error logError(errorClass.getClass().toString(), msg, e); |
void | logError(String errorClass, String msg, Exception e) log Error Log.e(errorClass, msg, e); if (writeLogFile && logFile != null) { String completeError = "\n" + "\n" + errorClass + " // " + msg + " // " + e.getMessage() + "\n"; StringWriter errors = new StringWriter(); e.printStackTrace(new PrintWriter(errors)); completeError += errors.toString() + "\n"; writeLog(completeError); ... |
void | e(Class> clazz, String message) e String tag = clazz.getSimpleName(); e(tag, message); |
void | write(String path, String log) write try { File file = new File(path); if (!file.exists()) { file.createNewFile(); FileWriter fw = new FileWriter(path); fw.write(log); fw.flush(); ... |
String | LogE(String tag, String message) Log E Log.e(tag, message);
return message;
|
void | debug(Object msg) debug if (debug) { Log.w("AQuery", msg + ""); |
void | debug(Object msg, Object msg2) debug if (debug) { Log.w("AQuery", msg + ":" + msg2); |
void | debug(Throwable e) debug if (debug) { String trace = Log.getStackTraceString(e); Log.w("AQuery", trace); |