to top
public interface

ILogRegistry

implements Log.ILogOutput
com.android.tradefed.log.ILogRegistry
Known Indirect Subclasses

Class Overview

An interface for a Log.ILogOutput singleton logger that multiplexes and manages different loggers.

Summary

Public Methods
abstract void closeAndRemoveAllLogs()
Closes and removes all logs being managed by this LogRegistry.
abstract void dumpLogs()
Diagnosis method to dump all logs to files.
abstract void dumpToGlobalLog(ILeveledLogOutput log)
Dumps the entire contents of a ILeveledLogOutput logger to the global log.
abstract Log.LogLevel getGlobalLogDisplayLevel()
Returns current log level display for the global log
abstract void registerLogger(ILeveledLogOutput log)
Registers the logger as the instance to use for the current thread.
abstract void saveGlobalLog()
Saves global logger contents to a tmp file.
abstract void setGlobalLogDisplayLevel(Log.LogLevel logLevel)
Set the log level display for the global log
abstract void setGlobalLogTagDisplay(Collection<String> logTagsDisplay)
Set the log tags to display for the global log
abstract void unregisterLogger()
Unregisters the current logger in effect for the current thread.
[Expand]
Inherited Methods
From interface com.android.ddmlib.Log.ILogOutput

Public Methods

public abstract void closeAndRemoveAllLogs ()

Closes and removes all logs being managed by this LogRegistry.

public abstract void dumpLogs ()

Diagnosis method to dump all logs to files.

public abstract void dumpToGlobalLog (ILeveledLogOutput log)

Dumps the entire contents of a ILeveledLogOutput logger to the global log.

This is useful in scenarios where you know the logger's output won't be saved permanently, yet you want the contents to be saved somewhere and not lost.

public abstract Log.LogLevel getGlobalLogDisplayLevel ()

Returns current log level display for the global log

Returns

public abstract void registerLogger (ILeveledLogOutput log)

Registers the logger as the instance to use for the current thread.

public abstract void saveGlobalLog ()

Saves global logger contents to a tmp file.

public abstract void setGlobalLogDisplayLevel (Log.LogLevel logLevel)

Set the log level display for the global log

Parameters
logLevel the Log.LogLevel to use

public abstract void setGlobalLogTagDisplay (Collection<String> logTagsDisplay)

Set the log tags to display for the global log

public abstract void unregisterLogger ()

Unregisters the current logger in effect for the current thread.