BaseStreamLogger

public abstract class BaseStreamLogger
extends BaseLeveledLogOutput

java.lang.Object
   ↳ com.android.tradefed.log.BaseLeveledLogOutput
     ↳ com.android.tradefed.log.BaseStreamLogger<OS extends OutputStream>


ILeveledLogOutput, który kieruje komunikaty dziennika do strumienia wyjściowego i stdout.

Podsumowanie

Fieldsem

protected OS extends OutputStream mOutputStream

Konstruktory publiczne

BaseStreamLogger()

Metody publiczne

void closeLog()
Log.LogLevel getLogLevel()
Log.LogLevel getLogLevelDisplay()
void printAndPromptLog(Log.LogLevel logLevel, String tag, String message)
void printLog(Log.LogLevel logLevel, String tag, String message)
void setLogLevel(Log.LogLevel logLevel)
void setLogLevelDisplay(Log.LogLevel logLevel)

Ustawia minimalną wartość LogLevel do wyświetlania na wyjściu standardowym.

Chronione metody

void writeToLog(String message)

Zapisuje wiadomość w strumieniu wyjściowym.

Fieldsem

mOutputStream

protected OS extends OutputStream mOutputStream

Konstruktory publiczne

BaseStreamLogger

public BaseStreamLogger ()

Metody publiczne

closeLog

public void closeLog ()

getLogLevel

public Log.LogLevel getLogLevel ()

Zwroty
Log.LogLevel

getLogLevelDisplay

public Log.LogLevel getLogLevelDisplay ()

Zwroty
Log.LogLevel aktualne minimalne LogLevel do wyświetlania na wyjściu standardowym.

printAndPromptLog

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

Parametry
logLevel Log.LogLevel

tag String

message String

printLog

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

Parametry
logLevel Log.LogLevel

tag String

message String

setLogLevel

public void setLogLevel (Log.LogLevel logLevel)

Parametry
logLevel Log.LogLevel

setLogLevelDisplay

public void setLogLevelDisplay (Log.LogLevel logLevel)

Ustawia minimalną wartość LogLevel do wyświetlania na wyjściu standardowym.

Parametry
logLevel Log.LogLevel

Chronione metody

writeToLog

protected void writeToLog (String message)

Zapisuje wiadomość w strumieniu wyjściowym.

Parametry
message String: wpis do zapisania w logu

Rzuty
jeśli wystąpi błąd wejścia/wyjścia.