HistoryLogger

public class HistoryLogger
extends FileLogger

java.lang.Object
   ↳ 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, Map<String, String> 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

HistoryLogger ()

Public methods

clone

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

void init ()

Initialize the log, creating any required IO resources.

Throws
IOException

logEvent

void logEvent (Log.LogLevel logLevel, 
                ILogRegistry.EventType event, 
                Map<String, String> 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 ILogRegistry.EventType of the event to log.
args Map: the map of arguments to be added to the log entry to get more details on the event.

printAndPromptLog

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

Parameters
logLevel Log.LogLevel
tag String
message String

printLog

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

Parameters
logLevel Log.LogLevel
tag String
message String