HistoryLogger
public
class
HistoryLogger
extends FileLogger
java.lang.Object | ||||
↳ | com.android.tradefed.log.BaseLeveledLogOutput | |||
↳ | com.android.tradefed.log.BaseStreamLogger<com.android.tradefed.util.SizeLimitedOutputStream> | |||
↳ | com.android.tradefed.log.FileLogger | |||
↳ | com.android.tradefed.log.HistoryLogger |
TF History Logger، وهو سجلّ خاص يحتوي على بعض الأحداث المحدّدة فقط.
ملخّص
وظائف الإنشاء العامة | |
---|---|
HistoryLogger()
|
الطرق العامة | |
---|---|
ILeveledLogOutput
|
clone()
لإنشاء |
void
|
init()
اعمِد إلى بدء السجلّ، وإنشاء أيّ موارد مطلوبة لعمليات الإدخال/الإخراج. |
void
|
logEvent(Log.LogLevel logLevel, ILogRegistry.EventType event,
يمكنك استدعاء هذه الطريقة لتسجيل حدث من نوع معيّن مع المعلومات المرتبطة به في الخريطة. |
void
|
printAndPromptLog(Log.LogLevel logLevel, String tag, String message)
|
void
|
printLog(Log.LogLevel logLevel, String tag, String message)
|
وظائف الإنشاء العامة
HistoryLogger
public HistoryLogger ()
الطرق العامة
نسخة طبق الأصل
public ILeveledLogOutput clone ()
لإنشاء FileLogger
جديد باستخدام إعدادات مستوى السجلّ نفسها المستخدَمة في العنصر الحالي
لا يتم نسخ محتوى ملف السجلّ الأساسي (أي أنّه سيتم كتابة بيانات سجلّ النسخة المكرّرة في ملف جديد).
المرتجعات | |
---|---|
ILeveledLogOutput |
init
public void init ()
اعمِد إلى بدء السجلّ، وإنشاء أيّ موارد مطلوبة لعمليات الإدخال/الإخراج.
logEvent
public void logEvent (Log.LogLevel logLevel, ILogRegistry.EventType event,args)
يمكنك استدعاء هذه الطريقة لتسجيل حدث من نوع معيّن مع المعلومات المرتبطة به في الخريطة.
المعلمات | |
---|---|
logLevel |
Log.LogLevel |
event |
ILogRegistry.EventType : EventType الحدث المطلوب تسجيله |
args |
: خريطة الوسيطات التي ستتم إضافتها إلى إدخال السجلّ للحصول على مزيد من التفاصيل عن
الحدث |
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 |