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, który zawiera tylko niektóre konkretne zdarzenia.

Podsumowanie

Konstruktory publiczne

HistoryLogger()

Metody publiczne

ILeveledLogOutput clone()

Tworzy nowy obiekt FileLogger z tymi samymi ustawieniami poziomu rejestrowania co bieżący obiekt.

void init()

Zainicjuj dziennik, tworząc wszystkie wymagane zasoby wejścia/wyjścia.

void logEvent(Log.LogLevel logLevel, ILogRegistry.EventType event, Map<String, String> args)

Wywołaj tę metodę, aby zarejestrować zdarzenie z 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 obiekt FileLogger z tymi samymi ustawieniami poziomu rejestrowania co bieżący obiekt.

Nie kopiuje zawartości podstawowego pliku dziennika (tzn. dane dziennika klona będą zapisywane w nowym pliku).

Zwraca
ILeveledLogOutput

init

public void init ()

Zainicjuj dziennik, tworząc wszystkie wymagane zasoby wejścia/wyjścia.

Zgłasza
IOException

logEvent

public void logEvent (Log.LogLevel logLevel, 
                ILogRegistry.EventType event, 
                Map<String, String> args)

Wywołaj tę metodę, aby zarejestrować zdarzenie z typu z powiązanymi informacjami na mapie.

Parametry
logLevel Log.LogLevel

event ILogRegistry.EventType: EventType zdarzenia do zarejestrowania.

args Map: mapa argumentów, które mają zostać dodane do wpisu logu, aby uzyskać więcej szczegółów o wydarzeniu.

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