BaseStreamLogger

public abstract class BaseStreamLogger
extends BaseLeveledLogOutput

java.lang.Object
com.android.tradefed.log.BaseLeveledLogOutput
com.android.tradefed.log.BaseStreamLogger<OS mở rộng OutputStream>


ILeveledLogOutput hướng các thông điệp tường trình đến luồng đầu ra và tới 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 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)

Đặ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 thông báo tới luồng đầu ra.

Lĩnh vực

mOutputStream

protected OS extends OutputStream mOutputStream

Nhà thầu xây dựng công cộng

BaseStreamLogger

public BaseStreamLogger ()

Phương pháp công khai

đóngNhật ký

public void closeLog ()

getLogLevel

public Log.LogLevel getLogLevel ()

Trả lại
Log.LogLevel

getLogLevelHiển thị

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ệ

viếtToLog

protected void writeToLog (String message)

Viết một thông báo tới luồng đầu ra.

Thông số
message String : mục để ghi vào nhật ký

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