StdoutLogger

public class StdoutLogger
extends Object implements ILeveledLogOutput

java.lang.Object
com.android.tradefed.log.StdoutLogger,


ILeveledLogOutput, który kieruje komunikaty logu do stdout.

Podsumowanie

Konstruktory publiczne

StdoutLogger()

Metody publiczne

ILeveledLogOutput clone()
void closeLog()

Zamyka dziennik i w razie potrzeby wykonuje czyszczenie przed zamknięciem.

InputStreamSource getLog()

Pobiera strumień zrzutów danych dziennika.

Log.LogLevel getLogLevel()

Pobiera minimalny poziom logowania do wyświetlenia.

void init()

Zainicjuj dziennik, tworząc wymagane zasoby IO.

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

void printLog(Log.LogLevel logLevel, String tag, String message)

void setLogLevel(Log.LogLevel logLevel)

Ustawia minimalny poziom logowania, który ma być wyświetlany.

Konstruktory publiczne

StdoutLogger

public StdoutLogger ()

Metody publiczne

klonować

public ILeveledLogOutput clone ()

Zwroty
ILeveledLogOutput

CloseLog

public void closeLog ()

Zamyka dziennik i w razie potrzeby wykonuje czyszczenie przed zamknięciem.

getLog

public InputStreamSource getLog ()

Pobiera strumień zrzutów danych dziennika.

Nie może zostać wywołana po ILeveledLogOutput#closeLog().

Nie możemy zagwarantować, że zwrócony strumień będzie miał optymalną wydajność. Rozmówcy mogą chcieć zawijaj wynik w ERROR(/BufferedInputStream).

Zwroty
InputStreamSource InputStreamSource danych dziennika. Jeśli funkcja nie jest obsługiwana, może zwracać wartość null.

getLogLevel

public Log.LogLevel getLogLevel ()

Pobiera minimalny poziom logowania do wyświetlenia.

Zwroty
Log.LogLevel bieżący LogLevel

init

public void init ()

Zainicjuj dziennik, tworząc wymagane zasoby IO.

PrintAndPromptLog

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

Parametry
logLevel Log.LogLevel

tag String

message String

PrintLog

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

Parametry
logLevel Log.LogLevel

tag String

message String

setLogLevel

public void setLogLevel (Log.LogLevel logLevel)

Ustawia minimalny poziom logowania, który ma być wyświetlany.

Parametry
logLevel Log.LogLevel: element LogLevel do wyświetlenia