BaseLeveledLogOutput

public abstract class BaseLeveledLogOutput
extends Object implements ILeveledLogOutput

java.lang.Object
   ↳ com.android.tradefed.log.BaseLeveledLogOutput


A base implementation for ILeveledLogOutput that allows to filtering some tags based on their name or components.

Summary

Public constructors

BaseLeveledLogOutput()

Public methods

abstract ILeveledLogOutput clone()

getForcedVerbosityMap()

Returns the map of the forced verbosity.

final void initFilters(IConfiguration config)

Initialize the components filters based on the invocation IConfiguration.

final boolean shouldDisplay(boolean forceStdout, Log.LogLevel invocationLogLevel, Log.LogLevel messageLogLevel, String tag)

Whether or not a particular statement should be displayed base on its tag.

boolean shouldForceVerbosity()

Whether or not to enforce the verbosity map.

Public constructors

BaseLeveledLogOutput

public BaseLeveledLogOutput ()

Public methods

clone

public abstract ILeveledLogOutput clone ()

Returns
ILeveledLogOutput

getForcedVerbosityMap

public  getForcedVerbosityMap ()

Returns the map of the forced verbosity.

Returns

initFilters

public final void initFilters (IConfiguration config)

Initialize the components filters based on the invocation IConfiguration.

Parameters
config IConfiguration

shouldDisplay

public final boolean shouldDisplay (boolean forceStdout, 
                Log.LogLevel invocationLogLevel, 
                Log.LogLevel messageLogLevel, 
                String tag)

Whether or not a particular statement should be displayed base on its tag.

Parameters
forceStdout boolean: Whether or not to force the output to stdout.

invocationLogLevel Log.LogLevel: The current logLevel for the information.

messageLogLevel Log.LogLevel: The message evaluated log level.

tag String: The logging tag of the message considered.

Returns
boolean True if it should be displayed, false otherwise.

shouldForceVerbosity

public boolean shouldForceVerbosity ()

Whether or not to enforce the verbosity map.

Returns
boolean