Google cam kết thúc đẩy công bằng chủng tộc cho Cộng đồng người da đen. Xem cách thực hiện.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.

BaseStreamLogger

public abstract class BaseStreamLogger
extends BaseLeveledLogOutput

java.lang.Object
com.android.tradefed.log.BaseLeveledLogOutput
com.android.tradefed.log.BaseStreamLogger <Hệ điều hành mở rộng OutputStream>


Một ILeveledLogOutput chỉ đạo báo nhật ký đến một output stream và stdout.

Tóm lược

Lĩnh vực

protected OS extends OutputStream mOutputStream

Các nhà xây dựng công cộng

BaseStreamLogger ()

Phương pháp công khai

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)

Bộ tối thiểu LogLevel để hiển thị trên thiết bị xuất chuẩn.

Các phương pháp được bảo vệ

void writeToLog (String message)

Viết thông báo vào luồng đầu ra.

Lĩnh vực

mOutputStream

protected OS extends OutputStream mOutputStream

Các nhà xây dựng công cộng

BaseStreamLogger

public BaseStreamLogger ()

Phương pháp công khai

closeLog

public void closeLog ()

getLogLevel

public Log.LogLevel getLogLevel ()

Lợi nhuận
Log.LogLevel

getLogLevelDisplay

public Log.LogLevel getLogLevelDisplay ()

Lợi nhuận
Log.LogLevel tối thiểu hiện hành LogLevel để 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

printLog

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)

Bộ tối thiểu LogLevel để hiển thị trên thiết bị xuất chuẩn.

Thông số
logLevel Log.LogLevel

Các phương pháp được bảo vệ

writeToLog

protected void writeToLog (String message)

Viết thông báo vào luồng đầu ra.

Thông số
message String : mục để ghi vào log

Ném
nếu xảy ra lỗi I / O