BaseStreamLogger

public abstract class BaseStreamLogger
extends BaseLeveledLogOutput

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


ILeveledLogOutput, która kieruje komunikaty dziennika do strumienia wyjściowego i do standardowego wyjścia.

Podsumowanie

Pola

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)

Zgodność

void setLogLevelDisplay(Log.LogLevel logLevel)

Ustawia minimalny LogLevel do wyświetlania na standardowym wyjściu.

Metody chronione

void writeToLog(String message)

Zapisuje wiadomość w strumieniu wyjściowym.

Pola

mOutputStream

protected OS extends OutputStream mOutputStream

Konstruktory publiczne

BaseStreamLogger

public BaseStreamLogger ()

Metody publiczne

closeLog

public void closeLog ()

getLogLevel

public Log.LogLevel getLogLevel ()

Zwraca
Log.LogLevel

getLogLevelDisplay

public Log.LogLevel getLogLevelDisplay ()

Zwraca
Log.LogLevel bieżący minimalny 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 minimalny LogLevel do wyświetlania na 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 dzienniku

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