Most visited

Recently visited

Added in API level 1

LogPrinter

public class LogPrinter
extends Object implements Printer

java.lang.Object
   ↳ android.util.LogPrinter


实现将其输出发送到系统日志的 Printer

Summary

Public constructors

LogPrinter(int priority, String tag)

创建一个新的打印机,以给定的优先级和标签发送到日志。

Public methods

void println(String x)

将一行文本写入输出。

Inherited methods

From class java.lang.Object
From interface android.util.Printer

Public constructors

LogPrinter

Added in API level 1
LogPrinter (int priority, 
                String tag)

创建一个新的打印机,以给定的优先级和标签发送到日志。

Parameters
priority int: The desired log priority: Log.VERBOSE, Log.DEBUG, Log.INFO, Log.WARN, or Log.ERROR.
tag String: A string tag to associate with each printed log statement.

Public methods

println

Added in API level 1
void println (String x)

将一行文本写入输出。 不需要用换行符终止给定的字符串。

Parameters
x String

Hooray!