Log.ILogOutput

public static interface Log.ILogOutput

com.android.tradefed.log.Log.ILogOutput


实现此接口的类提供了用于处理输出日志消息的方法。

摘要

公共方法

abstract void printAndPromptLog(Log.LogLevel logLevel, String tag, String message)

当需要输出日志消息并尽可能在对话框中向用户显示该消息时发送。

abstract void printLog(Log.LogLevel logLevel, String tag, String message)

在需要输出日志消息时发送。

公共方法

printAndPromptLog

public abstract void printAndPromptLog (Log.LogLevel logLevel, 
                String tag, 
                String message)

当需要输出日志消息并尽可能在对话框中向用户显示该消息时发送。

参数
logLevel Log.LogLevel:表示消息优先级的 LogLevel 枚举。

tag String:与消息关联的标记。

message String:要显示的消息。

printLog

public abstract void printLog (Log.LogLevel logLevel, 
                String tag, 
                String message)

在需要输出日志消息时发送。

参数
logLevel Log.LogLevel:表示消息优先级的 LogLevel 枚举。

tag String:与消息关联的标记。

message String:要显示的消息。