StdoutLogger

public class StdoutLogger
extends Object implements ILeveledLogOutput

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


ILeveledLogOutput שמפנה את ההודעות ביומן אל stdout.

סיכום

בנאים ציבוריים

StdoutLogger()

שיטות ציבוריות

ILeveledLogOutput clone()
void closeLog()

הלחצן סוגר את היומן ומבצע ניקוי לפני הסגירה, לפי הצורך.

InputStreamSource getLog()

תופסת רצף snapshot של נתוני היומן.

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 ()

תופסת רצף snapshot של נתוני היומן.

אין להתקשר אחרי ILeveledLogOutput#closeLog().

לא מובטח שהשידור שמוחזר יניב ביצועים אופטימליים. ייתכן שהמתקשרים ירצו תוצאת גלישת הטקסט ב-ERROR(/BufferedInputStream).

החזרות
InputStreamSource InputStreamSource של נתוני היומן. אם אין תמיכה, המערכת עשויה להחזיר ערך null.

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