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:要顯示的訊息。