จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ

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

วิธีการป้องกัน

writeToLog

protected void writeToLog (String message)

เขียนข้อความไปยังกระแสข้อมูลขาออก

พารามิเตอร์
message String : เข้าสู่การเขียนการเข้าสู่ระบบ

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