BaseStreamLoggera

public abstract class BaseStreamLogger
extends BaseLeveledLogOutput

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


ILeveledLogOutput , który kieruje komunikaty dziennika do strumienia wyjściowego i na standardowe wyjście.

Streszczenie

Pola

protected OS extends OutputStream mOutputStream

Konstruktorzy publiczni

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 LogLevel do wyświetlenia na stdout.

Metody chronione

void writeToLog (String message)

Zapisuje komunikat w strumieniu wyjściowym.

Pola

mWyjściowy strumień

protected OS extends OutputStream mOutputStream

Konstruktorzy publiczni

BaseStreamLoggera

public BaseStreamLogger ()

Metody publiczne

zamknijLog

public void closeLog ()

pobierz poziom logu

public Log.LogLevel getLogLevel ()

Zwroty
Log.LogLevel

pobierzLogLevelDisplay

public Log.LogLevel getLogLevelDisplay ()

Zwroty
Log.LogLevel bieżący minimalny poziom 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

ustawLogLevelDisplay

public void setLogLevelDisplay (Log.LogLevel logLevel)

Ustawia minimalny LogLevel do wyświetlenia na stdout.

Parametry
logLevel Log.LogLevel

Metody chronione

napisz do dziennika

protected void writeToLog (String message)

Zapisuje komunikat w strumieniu wyjściowym.

Parametry
message String : wpis do zapisania w dzienniku

Rzuca
jeśli wystąpi błąd we/wy