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

אחזור של קובץ snapshot של נתוני היומן.

Log.LogLevel getLogLevel()

הפונקציה מקבלת את רמת היומן המינימלית שצריך להציג.

void init()

מאתחלים את היומן ויוצרים את משאבי הקלט/הפלט הנדרשים.

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 הנוכחי

init

public void init ()

מאתחלים את היומן ויוצרים את משאבי הקלט/הפלט הנדרשים.

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 שרוצים להציג