to top
public class

StdoutLogger

extends Object
implements ILeveledLogOutput
java.lang.Object
   ↳ com.android.tradefed.log.StdoutLogger

Class Overview

A ILeveledLogOutput that directs log messages to stdout.

Summary

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

Public Constructors

public StdoutLogger ()

Public Methods

public ILeveledLogOutput clone ()

public void closeLog ()

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

public 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

public Log.LogLevel getLogLevel ()

Gets the minimum log level to display.

Returns

public void init ()

Initialize the log, creating any required IO resources.

Throws
IOException

public void printAndPromptLog (Log.LogLevel logLevel, String tag, String message)

public void printLog (Log.LogLevel logLevel, String tag, String message)

public void setLogLevel (Log.LogLevel logLevel)

Sets the minimum log level to display.

Parameters
logLevel the Log.LogLevel to display