Rejestrator historii

public class HistoryLogger
extends FileLogger

Obiekt 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


Rejestrator historii TF, specjalny dziennik zawierający tylko niektóre określone zdarzenia.

Streszczenie

Konstruktorzy publiczni

HistoryLogger ()

Metody publiczne

ILeveledLogOutput clone ()

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

void init ()

Zainicjuj dziennik, tworząc 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)

Konstruktorzy publiczni

Rejestrator historii

public HistoryLogger ()

Metody publiczne

klon

public ILeveledLogOutput clone ()

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

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

Zwroty
ILeveledLogOutput

w tym

public void init ()

Zainicjuj dziennik, tworząc wymagane zasoby we/wy.

zdarzenie dziennika

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 należy dodać do wpisu dziennika, aby uzyskać więcej szczegółów na temat zdarzenia.

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