StdoutLogger

public class StdoutLogger
extends Object implements ILeveledLogOutput

java.lang.Object
com.android.tradefed.log.StdoutLogger


ILeveledLogOutput ที่ส่งข้อความบันทึกไปยัง stdout

สรุป

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

StdoutLogger ()

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

ILeveledLogOutput clone ()
void closeLog ()

ปิดบันทึกและดำเนินการล้างข้อมูลใดๆ ก่อนปิด ตามความจำเป็น

InputStreamSource getLog ()

ดึงสตรีมสแน็ปช็อตของข้อมูลบันทึก

Log.LogLevel getLogLevel ()

รับระดับบันทึกขั้นต่ำที่จะแสดง

void init ()

เริ่มต้นบันทึก โดยสร้างทรัพยากร IO ที่จำเป็น

void printAndPromptLog (Log.LogLevel logLevel, String tag, String message)

void printLog (Log.LogLevel logLevel, String tag, String message)

void setLogLevel (Log.LogLevel logLevel)

ตั้งค่าระดับบันทึกขั้นต่ำที่จะแสดง

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

StdoutLogger

public StdoutLogger ()

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

โคลน

public ILeveledLogOutput clone ()

การส่งคืน
ILeveledLogOutput

ปิดบันทึก

public void closeLog ()

ปิดบันทึกและดำเนินการล้างข้อมูลใดๆ ก่อนปิด ตามความจำเป็น

getLog

public InputStreamSource getLog ()

ดึงสตรีมสแน็ปช็อตของข้อมูลบันทึก

จะต้องไม่ถูกเรียกหลังจาก ILeveledLogOutput#closeLog()

ไม่รับประกันว่าสตรีมที่ส่งคืนจะมีประสิทธิภาพสูงสุด ผู้โทรอาจต้องการตัดผลลัพธ์เป็น ERROR(/BufferedInputStream)

การส่งคืน
InputStreamSource InputStreamSource ของข้อมูลบันทึก อาจส่งคืนค่าว่างหากไม่รองรับ

getLogLevel

public Log.LogLevel getLogLevel ()

รับระดับบันทึกขั้นต่ำที่จะแสดง

การส่งคืน
Log.LogLevel LogLevel ปัจจุบัน

ในนั้น

public void init ()

เริ่มต้นบันทึก โดยสร้างทรัพยากร IO ที่จำเป็น

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 : LogLevel ที่จะแสดง