ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release แทน aosp-main เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
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 ()
เมธอดสาธารณะ
closeLog
public void closeLog ()
getLogLevelDisplay
public Log.LogLevel getLogLevelDisplay ()
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 |
Log.LogLevel |
setLogLevelDisplay
public void setLogLevelDisplay (Log.LogLevel logLevel)
กำหนดค่า LogLevel ขั้นต่ำที่จะแสดงใน stdout
| พารามิเตอร์ |
logLevel |
Log.LogLevel |
วิธีการที่ได้รับการป้องกัน
writeToLog
protected void writeToLog (String message)
เขียนข้อความไปยังสตรีมเอาต์พุต
| พารามิเตอร์ |
message |
String: รายการที่จะเขียนลงในบันทึก |
| การขว้าง |
|
หากเกิดข้อผิดพลาด I/O |
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-12-04 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-12-04 UTC"],[],[]]