HistoryLogger
public
class
HistoryLogger
extends FileLogger
java.lang.Object | ||||
↳ | com.android.tradefed.log.BaseLeveledLogOutput | |||
↳ | com.android.tradefed.log.BaseStreamLogger<com.android.tradefed.util.SizeLimitedOutputStream> | |||
↳ | com.android.tradefed.log.FileLogger | |||
↳ | com.android.tradefed.log.HistoryLogger |
TF History Logger, specjalny dziennik zawierający tylko niektóre konkretne zdarzenia.
Podsumowanie
Konstruktory publiczne | |
---|---|
HistoryLogger()
|
Metody publiczne | |
---|---|
ILeveledLogOutput
|
clone()
Tworzy nowy element |
void
|
init()
Inicjowanie dziennika, tworzenie wymaganych zasobów IO. |
void
|
logEvent(Log.LogLevel logLevel, ILogRegistry.EventType event,
Wykonaj tę metodę, aby zarejestrować zdarzenie typu z powiązanymi informacjami na mapie. |
void
|
printAndPromptLog(Log.LogLevel logLevel, String tag, String message)
|
void
|
printLog(Log.LogLevel logLevel, String tag, String message)
|
Konstruktory publiczne
HistoryLogger
public HistoryLogger ()
Metody publiczne
klon
public ILeveledLogOutput clone ()
Tworzy nowy element FileLogger
z tymi samymi ustawieniami poziomu dziennika co bieżący obiekt.
Nie kopiuje zawartości pliku dziennika (czyli dane dziennika w klonie zostaną zapisane w nowym pliku).
Zwroty | |
---|---|
ILeveledLogOutput |
init
public void init ()
Inicjowanie dziennika, tworzenie wymaganych zasobów IO.
logEvent
public void logEvent (Log.LogLevel logLevel, ILogRegistry.EventType event,args)
Wykonaj tę metodę, aby zarejestrować zdarzenie typu z powiązanymi informacjami na mapie.
Parametry | |
---|---|
logLevel |
Log.LogLevel |
event |
ILogRegistry.EventType : EventType zdarzenia do zapisania w dzienniku. |
args |
: mapa argumentów, które mają zostać dodane do wpisu w logu, aby uzyskać więcej informacji o danym zdarzeniu. |
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 |