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 wiadomości dziennika do strumienia wyjściowego i do standardowego wyjścia.

Podsumowanie

Fieldsem

protected OS extends OutputStream mOutputStream

Publiczne konstruktory

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)

Zgodność

void setLogLevelDisplay(Log.LogLevel logLevel)

Ustawia minimalną wartość LogLevel do wyświetlenia w standardowym wyjściu.

Metody chronione

void writeToLog(String message)

Zapisuje wiadomość w strumieniu wyjściowym.

Fieldsem

mOutputStream

protected OS extends OutputStream mOutputStream

Publiczne konstruktory

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 bieżące minimum LogLevel do wyświetlania na standardowym wyjściu.

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)

Zgodność

Parametry
logLevel Log.LogLevel

setLogLevelDisplay

public void setLogLevelDisplay (Log.LogLevel logLevel)

Ustawia minimalną wartość LogLevel do wyświetlenia w standardowym wyjściu.

Parametry
logLevel Log.LogLevel

Metody chronione

writeToLog

protected void writeToLog (String message)

Zapisuje wiadomość w strumieniu wyjściowym.

Parametry
message String: wpis do zapisania w logu.

Zgłasza
jeśli wystąpi błąd wejścia/wyjścia;