BaseStreamLogger
public abstract class BaseStreamLogger
extends BaseLeveledLogOutput
Các lớp con trực tiếp đã biết |
Các lớp con gián tiếp đã biết Lịch sửLogger | TF History Logger, nhật ký đặc biệt chỉ chứa một số sự kiện cụ thể. |
|
Một ILeveledLogOutput
hướng các thông điệp nhật ký đến một luồng đầu ra và đến thiết bị xuất chuẩn.
Bản tóm tắt
phương pháp được bảo vệ |
---|
void | writeToLog (String message) Viết một tin nhắn đến luồng đầu ra. |
Lĩnh vực
mOutputStream
protected OS extends OutputStream mOutputStream
nhà thầu công cộng
BaseStreamLogger
public BaseStreamLogger ()
Phương thức công khai
đóngNhật ký
public void closeLog ()
getLogLevel
public Log.LogLevel getLogLevel ()
getLogLevelDisplay
public Log.LogLevel getLogLevelDisplay ()
trả lại |
---|
Log.LogLevel | LogLevel tối thiểu hiện tại để hiển thị trên thiết bị xuất chuẩn. |
printAndPromptLog
public void printAndPromptLog (Log.LogLevel logLevel,
String tag,
String message)
Thông số |
---|
logLevel | Log.LogLevel |
tag | String |
message | String |
inNhật ký
public void printLog (Log.LogLevel logLevel,
String tag,
String message)
Thông số |
---|
logLevel | Log.LogLevel |
tag | String |
message | String |
setLogLevel
public void setLogLevel (Log.LogLevel logLevel)
Thông số |
---|
logLevel | Log.LogLevel |
setLogLevelDisplay
public void setLogLevelDisplay (Log.LogLevel logLevel)
Đặt LogLevel
tối thiểu để hiển thị trên thiết bị xuất chuẩn.
Thông số |
---|
logLevel | Log.LogLevel |
phương pháp được bảo vệ
writeToLog
protected void writeToLog (String message)
Viết một tin nhắn đến luồng đầu ra.
Thông số |
---|
message | String : mục nhập để ghi vào nhật ký |