基本流记录器
public abstract class BaseStreamLogger
extends BaseLeveledLogOutput
已知的间接子类历史记录器 | TF History Logger,只包含一些特定事件的特殊日志。 |
|
甲ILeveledLogOutput
引导日志消息到输出流和到stdout。
概括
字段
输出流
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)
将消息写入输出流。