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()

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.

Public constructors

BaseLeveledLogOutput

public BaseLeveledLogOutput ()

Public methods

clone

public abstract ILeveledLogOutput clone ()

Returns
ILeveledLogOutput

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.