android.util
Class LogPrinter
java.lang.Object
android.util.LogPrinter
- All Implemented Interfaces:
- Printer
public class LogPrinter
- extends Object
- implements Printer
Implementation of a Printer that sends its output
to the system log.
|
Constructor Summary |
LogPrinter(int priority,
String tag)
Create a new Printer that sends to the log with the given priority
and tag. |
|
Method Summary |
void |
println(String x)
Write a line of text to the output. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogPrinter
public LogPrinter(int priority,
String tag)
- Create a new Printer that sends to the log with the given priority
and tag.
- Parameters:
priority - The desired log priority:
Log.VERBOSE,
Log.DEBUG,
Log.INFO,
Log.WARN, or
Log.ERROR.tag - A string tag to associate with each printed log statement.
println
public void println(String x)
- Description copied from interface:
Printer
- Write a line of text to the output. There is no need to terminate
the given string with a newline.
- Specified by:
println in interface Printer
Please submit a feedback, bug or feature