FileDocCategorySizeDatePackage
LogPrinter.javaAPI DocAndroid 1.5 API1545Wed May 06 22:41:56 BST 2009android.util

LogPrinter

public class LogPrinter extends Object implements Printer
Implementation of a {@link android.util.Printer} that sends its output to the system log.

Fields Summary
private final int
mPriority
private final String
mTag
Constructors Summary
public LogPrinter(int priority, String tag)
Create a new Printer that sends to the log with the given priority and tag.

param
priority The desired log priority: {@link android.util.Log#VERBOSE Log.VERBOSE}, {@link android.util.Log#DEBUG Log.DEBUG}, {@link android.util.Log#INFO Log.INFO}, {@link android.util.Log#WARN Log.WARN}, or {@link android.util.Log#ERROR Log.ERROR}.
param
tag A string tag to associate with each printed log statement.

        mPriority = priority;
        mTag = tag;
    
Methods Summary
public voidprintln(java.lang.String x)

        Log.println(mPriority, mTag, x);