基本流程記錄器
public abstract class BaseStreamLogger
extends BaseLeveledLogOutput
已知的間接子類歷史記錄器 | TF History Logger,僅包含一些特定事件的特殊日誌。 |
|
ILeveledLogOutput
將日誌訊息定向到輸出流和標準輸出。
概括
領域
m輸出流
protected OS extends OutputStream mOutputStream
公共構造函數
基本流程記錄器
public BaseStreamLogger ()
公共方法
關閉日誌
public void closeLog ()
取得日誌等級
public Log.LogLevel getLogLevel ()
取得日誌等級顯示
public Log.LogLevel getLogLevelDisplay ()
列印並提示日誌
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)
設定日誌等級顯示
public void setLogLevelDisplay (Log.LogLevel logLevel)
設定在標準輸出上顯示的最小LogLevel
。
受保護的方法
寫入日誌
protected void writeToLog (String message)
將訊息寫入輸出流。
參數 |
---|
message | String : 要寫入日誌的條目 |