החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
שומר יומנים
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
שומר היומנים ב-Tradefed הוא חלק מההגדרה הראשית, והוא אובייקט ייחודי שמטפל בשמירת היומנים ובהפצת האירועים לדיווח על תוצאות.
ממשק הליבה
בממשק הראשי של שומר היומנים, ILogSaver
, מתואר האופן שבו קובץ נשמר.
כשמפעילים את ILogSaver
, הוא מחזיר את הערך LogFile
שמתאר את הקובץ שנשמר ואת המטא-נתונים שלו, לשימוש של דיווח על התוצאות.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# Log saver\n\nThe log saver in Tradefed is part of the\n[main configuration](/docs/core/tests/tradefed/architecture/xml-config) and is a unique\nobject handling the saving of the logs and propagating the events to result\nreporters.\n\nCore interface\n--------------\n\nThe main interface of the log saver,\n[`ILogSaver`](https://android.googlesource.com/platform/tools/tradefederation/+/refs/heads/android16-release/invocation_interfaces/com/android/tradefed/result/ILogSaver.java),\ndescribes how a file is saved.\nWhen invoked, `ILogSaver` returns\n[`LogFile`](https://android.googlesource.com/platform/tools/tradefederation/+/refs/heads/android16-release/invocation_interfaces/com/android/tradefed/result/LogFile.java),\nwhich describes the saved file and its metadata for the result reporters to consume."]]