FileDocCategorySizeDatePackage
Log.javaAPI DocAndroid 5.1 API2007Thu Mar 12 22:22:44 GMT 2015com.android.tools.layoutlib.create

Log

public class Log extends Object

Fields Summary
private boolean
mVerbose
Constructors Summary
Methods Summary
public voiddebug(java.lang.String format, java.lang.Object args)

        if (mVerbose) {
            info(format, args);
        }
    
public voiddebugNoln(java.lang.String format, java.lang.Object args)
Similar to debug() but doesn't do a \n automatically.

        if (mVerbose) {
            String s = String.format(format, args);
            System.out.print(s);
        }
    
protected voiderrPrintln(java.lang.String msg)
for unit testing

        System.err.println(msg);
    
public voiderror(java.lang.String format, java.lang.Object args)

        String s = String.format(format, args);
        errPrintln(s);
    
public voidexception(java.lang.Throwable t, java.lang.String format, java.lang.Object args)

        StringWriter sw = new StringWriter();
        PrintWriter pw = new PrintWriter(sw);
        t.printStackTrace(pw);
        pw.flush();
        error(format + "\n" + sw.toString(), args);
    
public voidinfo(java.lang.String format, java.lang.Object args)

        String s = String.format(format, args);
        outPrintln(s);
    
protected voidoutPrintln(java.lang.String msg)
for unit testing

        System.out.println(msg);
    
public voidsetVerbose(boolean verbose)


        
        mVerbose = verbose;