StdoutLogger
public class StdoutLogger
extends Object
implements ILeveledLogOutput
java.lang.Object | |
com.android.tradefed.log.StdoutLogger |
ILeveledLogOutput
, który kieruje komunikaty dziennika na standardowe wyjście.
Streszczenie
Konstruktorzy publiczni | |
---|---|
StdoutLogger () |
Metody publiczne | |
---|---|
ILeveledLogOutput | clone () |
void | closeLog () Zamyka dziennik i w razie potrzeby przeprowadza czyszczenie przed zamknięciem. |
InputStreamSource | getLog () Pobiera strumień migawek danych dziennika. |
Log.LogLevel | getLogLevel () Pobiera minimalny poziom rejestrowania do wyświetlenia. |
void | init () Zainicjuj dziennik, tworząc wszelkie wymagane zasoby we/wy. |
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 rejestrowania do wyświetlenia. |
Konstruktorzy publiczni
StdoutLogger
public StdoutLogger ()
Metody publiczne
zamknijZaloguj
public void closeLog ()
Zamyka dziennik i w razie potrzeby przeprowadza czyszczenie przed zamknięciem.
getLog
public InputStreamSource getLog ()
Pobiera strumień migawek danych dziennika.
Nie może być wywoływana po ILeveledLogOutput#closeLog()
.
Zwrócony strumień nie gwarantuje optymalnej wydajności. Wywołujący mogą chcieć zawinąć wynik w ERROR(/BufferedInputStream)
.
Zwroty | |
---|---|
InputStreamSource | InputStreamSource danych dziennika. Może zwrócić wartość null, jeśli nie jest obsługiwana. |
getLogLevel
public Log.LogLevel getLogLevel ()
Pobiera minimalny poziom rejestrowania do wyświetlenia.
Zwroty | |
---|---|
Log.LogLevel | aktualny LogLevel |
w tym
public void init ()
Zainicjuj dziennik, tworząc wszelkie wymagane zasoby we/wy.
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 rejestrowania do wyświetlenia.
Parametry | |
---|---|
logLevel | Log.LogLevel : LogLevel do wyświetlenia |