BaseStreamLoggera
public abstract class BaseStreamLogger
extends BaseLeveledLogOutput
Znane bezpośrednie podklasy |
Znane podklasy pośrednie Rejestrator historii | Rejestrator historii TF, specjalny dziennik zawierający tylko niektóre określone zdarzenia. |
|
ILeveledLogOutput
, który kieruje komunikaty dziennika do strumienia wyjściowego i na standardowe wyjście.
Streszczenie
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 ()
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 |