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

closeLog

public void closeLog ()

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

getLog

public InputStreamSource getLog ()

ดึงข้อมูลสตรีมภาพรวมของข้อมูลบันทึก

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

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

คิกรีเทิร์น
InputStreamSource InputStreamSource ของข้อมูลบันทึก อาจแสดงผล Null หากระบบไม่รองรับ

getLogLevel

public Log.LogLevel getLogLevel ()

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

คิกรีเทิร์น
Log.LogLevel LogLevelปัจจุบัน

init

public void init ()

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

printAndPromptLog

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

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

tag String

message String

printLog

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