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 להצגה