基本流程記錄器

public abstract class BaseStreamLogger
extends BaseLeveledLogOutput

java.lang.Object
com.android.tradefed.log.BaseLeveledLogOutput
com.android.tradefed.log.BaseStreamLogger<OS 擴充 OutputStream>


ILeveledLogOutput將日誌訊息定向到輸出流和標準輸出。

概括

領域

protected OS extends OutputStream mOutputStream

公共構造函數

BaseStreamLogger ()

公共方法

void closeLog ()
Log.LogLevel getLogLevel ()
Log.LogLevel getLogLevelDisplay ()
void printAndPromptLog (Log.LogLevel logLevel, String tag, String message)
void printLog (Log.LogLevel logLevel, String tag, String message)
void setLogLevel (Log.LogLevel logLevel)
void setLogLevelDisplay (Log.LogLevel logLevel)

設定在標準輸出上顯示的最小LogLevel

受保護的方法

void writeToLog (String message)

將訊息寫入輸出流。

領域

m輸出流

protected OS extends OutputStream mOutputStream

公共構造函數

基本流程記錄器

public BaseStreamLogger ()

公共方法

關閉日誌

public void closeLog ()

取得日誌等級

public Log.LogLevel getLogLevel ()

退貨
Log.LogLevel

取得日誌等級顯示

public Log.LogLevel getLogLevelDisplay ()

退貨
Log.LogLevel在標準輸出上顯示的目前最小LogLevel

列印並提示日誌

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

參數
logLevel Log.LogLevel

tag String

message String

列印日誌

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

參數
logLevel Log.LogLevel

tag String

message String

設定日誌等級

public void setLogLevel (Log.LogLevel logLevel)

參數
logLevel Log.LogLevel

設定日誌等級顯示

public void setLogLevelDisplay (Log.LogLevel logLevel)

設定在標準輸出上顯示的最小LogLevel

參數
logLevel Log.LogLevel

受保護的方法

寫入日誌

protected void writeToLog (String message)

將訊息寫入輸出流。

參數
message String : 要寫入日誌的條目

投擲
如果發生 I/O 錯誤