Android Utililty Methods Log

List of utility methods to do Log

Description

The list of methods to do Log are organized into topic(s).

Method

voidlogw(String msg)
logw
if (!debug) {
    return;
Log.w("ldx", "" + msg);
voidlog(String text)
log
Log.i("AEL", text);
voidlogError(Object errorClass, String msg, Exception e)
log Error
logError(errorClass.getClass().toString(), msg, e);
voidlogError(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);
...
voide(Class clazz, String message)
e
String tag = clazz.getSimpleName();
e(tag, message);
voidwrite(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();
...
StringLogE(String tag, String message)
Log E
Log.e(tag, message);
return message;
voiddebug(Object msg)
debug
if (debug) {
    Log.w("AQuery", msg + "");
voiddebug(Object msg, Object msg2)
debug
if (debug) {
    Log.w("AQuery", msg + ":" + msg2);
voiddebug(Throwable e)
debug
if (debug) {
    String trace = Log.getStackTraceString(e);
    Log.w("AQuery", trace);