Rejestrator historii
public class HistoryLogger
extends FileLogger
java.lang.Obiekt | ||||
↳ | 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, który zawiera tylko niektóre określone zdarzenia.
Streszczenie
Konstruktory publiczne | |
---|---|
HistoryLogger () |
Metody publiczne | |
---|---|
ILeveledLogOutput | clone () Tworzy nowy |
void | init () Zainicjuj dziennik, tworząc wszystkie wymagane zasoby we/wy. |
void | logEvent (Log.LogLevel logLevel, ILogRegistry.EventType event, args) logEvent (Log.LogLevel logLevel, ILogRegistry.EventType event, args) Wywołaj tę metodę, aby zarejestrować zdarzenie z typu ze skojarzonymi informacjami na mapie. |
void | printAndPromptLog (Log.LogLevel logLevel, String tag, String message) |
void | printLog (Log.LogLevel logLevel, String tag, String message) |
Konstruktory publiczne
Rejestrator historii
public HistoryLogger ()
Metody publiczne
klon
public ILeveledLogOutput clone ()
Tworzy nowy FileLogger
z tymi samymi ustawieniami poziomu dziennika, co bieżący obiekt.
Zwroty | |
---|---|
ILeveledLogOutput |
w tym
public void init ()
Zainicjuj dziennik, tworząc wszystkie wymagane zasoby we/wy.
dziennikZdarzenie
public void logEvent (Log.LogLevel logLevel, ILogRegistry.EventType event,args)
Wywołaj tę metodę, aby zarejestrować zdarzenie z typu ze skojarzonymi informacjami na mapie.
Parametry | |
---|---|
logLevel | Log.LogLevel |
event | ILogRegistry.EventType : EventType zdarzenia do zarejestrowania. |
args |
printAndPromptLog
public void printAndPromptLog (Log.LogLevel logLevel, String tag, String message)
Parametry | |
---|---|
logLevel | Log.LogLevel |
tag | String |
message | String |
drukujLog
public void printLog (Log.LogLevel logLevel, String tag, String message)
Parametry | |
---|---|
logLevel | Log.LogLevel |
tag | String |
message | String |