public interface

ILeveledLogOutput

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

Class Overview

Classes which implement this interface provides methods that deal with outputting log messages.

Summary

Public Methods
abstract ILeveledLogOutput clone()
abstract void closeLog()
Closes the log and performs any cleanup before closing, as necessary.
abstract InputStreamSource getLog()
Grabs a snapshot stream of the log data.
abstract Log.LogLevel getLogLevel()
Gets the minimum log level to display.
abstract void init()
Initialize the log, creating any required IO resources.
abstract void setLogLevel(Log.LogLevel logLevel)
Sets the minimum log level to display.
[Expand]
Inherited Methods
From interface com.android.ddmlib.Log.ILogOutput

Public Methods

public abstract ILeveledLogOutput clone ()

Returns

public abstract void closeLog ()

Closes the log and performs any cleanup before closing, as necessary.

public abstract InputStreamSource getLog ()

Grabs a snapshot stream of the log data.

Must not be called after closeLog().

The returned stream is not guaranteed to have optimal performance. Callers may wish to wrap result in a BufferedInputStream.

Returns
Throws
IllegalStateException if called when log has been closed.

public abstract Log.LogLevel getLogLevel ()

Gets the minimum log level to display.

Returns

public abstract void init ()

Initialize the log, creating any required IO resources.

Throws
IOException

public abstract void setLogLevel (Log.LogLevel logLevel)

Sets the minimum log level to display.

Parameters
logLevel the Log.LogLevel to display