BaseStreamLogger

public abstract class BaseStreamLogger
extends BaseLeveledLogOutput

java.lang.Obiekt
com.android.tradefed.log.BaseLeveledLogOutput
com.android.tradefed.log.BaseStreamLogger<OS rozszerza OutputStream>


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

Streszczenie

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)

Ustawia minimalny poziom LogLevel do wyświetlenia na stdout.

Metody chronione

void writeToLog (String message)

Zapisuje komunikat do strumienia wyjściowego.

Pola

mStrumień wyjściowy

protected OS extends OutputStream mOutputStream

Konstruktory publiczne

BaseStreamLogger

public BaseStreamLogger ()

Metody publiczne

zamknijLog

public void closeLog ()

pobierz poziom dziennika

public Log.LogLevel getLogLevel ()

Zwroty
Log.LogLevel

getLogLevelDisplay

public Log.LogLevel getLogLevelDisplay ()

Zwroty
Log.LogLevel bieżący minimalny LogLevel do wyświetlenia na stdout.

printAndPromptLog

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

Parametry
logLevel Log.LogLevel

tag String

message String

drukujLog

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

Parametry
logLevel Log.LogLevel

tag String

message String

ustaw poziom dziennika

public void setLogLevel (Log.LogLevel logLevel)

Parametry
logLevel Log.LogLevel

ustaw wyświetlanie poziomu dziennika

public void setLogLevelDisplay (Log.LogLevel logLevel)

Ustawia minimalny poziom LogLevel do wyświetlenia na stdout.

Parametry
logLevel Log.LogLevel

Metody chronione

writeToLog

protected void writeToLog (String message)

Zapisuje komunikat do strumienia wyjściowego.

Parametry
message String : wpis do zapisania w dzienniku

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