BaseStreamLogger
public abstract class BaseStreamLogger
extends BaseLeveledLogOutput
الفئات الفرعية المباشرة المعروفة |
الفئات الفرعية غير المباشرة المعروفة HistoryLogger | TF History Logger ، سجل خاص يحتوي فقط على بعض الأحداث المحددة. |
|
ILeveledLogOutput
الذي يوجه رسائل السجل إلى تدفق الإخراج وإلى stdout.
ملخص
الطرق المحمية |
---|
void | writeToLog (String message) يكتب رسالة إلى تيار الإخراج. |
مجالات
mOutputStream
protected OS extends OutputStream mOutputStream
المنشأت العامة
BaseStreamLogger
public BaseStreamLogger ()
الأساليب العامة
اغلاق
public void closeLog ()
getLogLevel
public Log.LogLevel getLogLevel ()
getLogLevelDisplay
public Log.LogLevel getLogLevelDisplay ()
عائدات |
---|
Log.LogLevel | الحد الأدنى الحالي LogLevel المراد عرضه على stdout. |
printAndPromptLog
public void printAndPromptLog (Log.LogLevel logLevel,
String tag,
String message)
حدود |
---|
logLevel | Log.LogLevel |
tag | String |
message | String |
printLog
public void printLog (Log.LogLevel logLevel,
String tag,
String message)
حدود |
---|
logLevel | Log.LogLevel |
tag | String |
message | String |
setLogLevel
public void setLogLevel (Log.LogLevel logLevel)
حدود |
---|
logLevel | Log.LogLevel |
setLogLevelDisplay
public void setLogLevelDisplay (Log.LogLevel logLevel)
يضبط الحد الأدنى LogLevel
ليتم عرضه على stdout.
حدود |
---|
logLevel | Log.LogLevel |
الطرق المحمية
writeToLog
protected void writeToLog (String message)
يكتب رسالة إلى تيار الإخراج.
حدود |
---|
message | String : الإدخال المراد الكتابة إليه في السجل |
رميات |
---|
| في حالة حدوث خطأ في الإدخال / الإخراج |