ILeveledLogOutput

public interface ILeveledLogOutput
implements Log.ILogOutput

com.android.tradefed.log.ILeveledLogOutput
Known Indirect Subclasses
FileLogger A ILeveledLogOutput that directs log messages to a file and to stdout. 
HistoryLogger TF History Logger, special log that contains only some specific events. 
StdoutLogger A ILeveledLogOutput that directs log messages to stdout. 


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.

Public methods

closeLog

void closeLog ()

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

getLog

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
InputStreamSource a InputStreamSource of the log data

Throws
IllegalStateException if called when log has been closed.

getLogLevel

Log.LogLevel getLogLevel ()

Gets the minimum log level to display.

Returns
Log.LogLevel the current Log.LogLevel

init

void init ()

Initialize the log, creating any required IO resources.

Throws
IOException

setLogLevel

void setLogLevel (Log.LogLevel logLevel)

Sets the minimum log level to display.

Parameters
logLevel Log.LogLevel: the Log.LogLevel to display