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.

BaseStreamLogger

public abstract class BaseStreamLogger
extends BaseLeveledLogOutput

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


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

Lĩnh vực

protected OS extends OutputStream mOutputStream

nhà thầu công cộng

BaseStreamLogger ()

Phương thức 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)

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

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 ()

trả lại
Log.LogLevel

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ý

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