ILeveledLogOutput
public
interface
ILeveledLogOutput
implements
Log.ILogOutput
com.android.tradefed.log.ILeveledLogOutput |
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
public abstract void closeLog ()
Closes the log and performs any cleanup before closing, as necessary.
getLog
public abstract InputStreamSource getLog ()
Grabs a snapshot stream of the log data.
Must not be called after ILeveledLogOutput#closeLog()
.
The returned stream is not guaranteed to have optimal performance. Callers may wish to
wrap result in a ERROR(/BufferedInputStream)
.
Returns | |
---|---|
InputStreamSource |
a InputStreamSource of the log data. May return null if not supported. |
Throws | |
---|---|
IllegalStateException |
if called when log has been closed. |
getLogLevel
public abstract Log.LogLevel getLogLevel ()
Gets the minimum log level to display.
Returns | |
---|---|
Log.LogLevel |
the current LogLevel |
init
public abstract void init ()
Initialize the log, creating any required IO resources.
setLogLevel
public abstract void setLogLevel (Log.LogLevel logLevel)
Sets the minimum log level to display.
Parameters | |
---|---|
logLevel |
Log.LogLevel : the LogLevel to display |