BaseStreamLogger

public abstract class BaseStreamLogger
extends BaseLeveledLogOutput

java.lang.Object
com.android.tradefed.log.BaseLeveledLogOutput
com.android.tradefed.log.BaseStreamLogger<OS ขยาย OutputStream>


ILeveledLogOutput ที่ส่งข้อความบันทึกไปยังสตรีมเอาท์พุตและไปยัง stdout

สรุป

เขตข้อมูล

protected OS extends OutputStream mOutputStream

ผู้รับเหมาก่อสร้างสาธารณะ

BaseStreamLogger ()

วิธีการสาธารณะ

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)

ตั้งค่า LogLevel ขั้นต่ำเพื่อแสดงบน stdout

วิธีการที่ได้รับการป้องกัน

void writeToLog (String message)

เขียนข้อความไปยังเอาท์พุตสตรีม

เขตข้อมูล

mOutputStream

protected OS extends OutputStream mOutputStream

ผู้รับเหมาก่อสร้างสาธารณะ

BaseStreamLogger

public BaseStreamLogger ()

วิธีการสาธารณะ

ปิดบันทึก

public void closeLog ()

getLogLevel

public Log.LogLevel getLogLevel ()

การส่งคืน
Log.LogLevel

getLogLevelDisplay

public Log.LogLevel getLogLevelDisplay ()

การส่งคืน
Log.LogLevel LogLevel ขั้นต่ำปัจจุบันที่จะแสดงบน stdout

printAndPromptLog

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

setLogLevel

public void setLogLevel (Log.LogLevel logLevel)

พารามิเตอร์
logLevel Log.LogLevel

setLogLevelDisplay

public void setLogLevelDisplay (Log.LogLevel logLevel)

ตั้งค่า LogLevel ขั้นต่ำเพื่อแสดงบน stdout

พารามิเตอร์
logLevel Log.LogLevel

วิธีการที่ได้รับการป้องกัน

เขียนถึงLog

protected void writeToLog (String message)

เขียนข้อความไปยังเอาท์พุตสตรีม

พารามิเตอร์
message String : รายการที่จะเขียนลงบันทึก

ขว้าง
หากเกิดข้อผิดพลาด I/O