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 FileLogger z tymi samymi ustawieniami poziomu dziennika, co bieżący obiekt.

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.

Nie kopiuje podstawowej zawartości pliku dziennika (tj. dane dziennika klonu zostaną zapisane w nowym pliku).

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 : mapa argumentów, które mają zostać dodane do wpisu dziennika, aby uzyskać więcej informacji o zdarzeniu.

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