BaseStreamLogger

public abstract class BaseStreamLogger
extends BaseLeveledLogOutput

java.lang.Object
   ↳ com.android.tradefed.log.BaseLeveledLogOutput
     ↳ com.android.tradefed.log.BaseStreamLogger<OS extends 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)

التوافق

void setLogLevelDisplay(Log.LogLevel logLevel)

يضبط الحد الأدنى LogLevel للعرض على stdout.

الطرق المحمية

void writeToLog(String message)

تُستخدَم لكتابة رسالة في بث الإخراج.

الحقول

mOutputStream

protected OS extends OutputStream mOutputStream

وظائف الإنشاء العامة

BaseStreamLogger

public BaseStreamLogger ()

الطرق العامة

closeLog

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

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

setLogLevelDisplay

public void setLogLevelDisplay (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: الإدخال المطلوب كتابته في السجلّ

عمليات الرمي
في حال حدوث خطأ في الإدخال/الإخراج