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, special log that contains only some specific events.

Summary

Public constructors

HistoryLogger()

Public methods

ILeveledLogOutput clone()

Creates a new FileLogger with the same log level settings as the current object.

void init()

Initialize the log, creating any required IO resources.

void logEvent(Log.LogLevel logLevel, ILogRegistry.EventType event, args)

Call this method to log an event from a type with the associated information in the map.

void printAndPromptLog(Log.LogLevel logLevel, String tag, String message)
void printLog(Log.LogLevel logLevel, String tag, String message)

Public constructors

HistoryLogger

public HistoryLogger ()

Public methods

clone

public ILeveledLogOutput clone ()

Creates a new FileLogger with the same log level settings as the current object.

Does not copy underlying log file content (ie the clone's log data will be written to a new file.)

Returns
ILeveledLogOutput

init

public void init ()

Initialize the log, creating any required IO resources.

logEvent

public void logEvent (Log.LogLevel logLevel, 
                ILogRegistry.EventType event, 
                 args)

Call this method to log an event from a type with the associated information in the map.

Parameters
logLevel Log.LogLevel

event ILogRegistry.EventType: the EventType of the event to log.

args : the map of arguments to be added to the log entry to get more details on the event.

printAndPromptLog

public void printAndPromptLog (Log.LogLevel logLevel, 
                String tag, 
                String message)

Parameters
logLevel Log.LogLevel

tag String

message String

printLog

public void printLog (Log.LogLevel logLevel, 
                String tag, 
                String message)

Parameters
logLevel Log.LogLevel

tag String

message String