FileDocCategorySizeDatePackage
Log.javaAPI DocAndroid 1.5 API1773Wed May 06 22:42:02 BST 2009com.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);
        }
    
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;