Tham chiếu API
App Logs
Đọc và xóa tệp nhật ký cuộn của PlainApp. Dành cho gỡ lỗi — chỉ chế độ nhà phát triển.
Định nghĩa kiểu
bash
# appLogs returns an array of plain strings (one per log line, newest-first).
# appLogPath returns the absolute path of the current log file on the device.Thao tác
query
appLogs
Đọc các dòng nhật ký từ tệp nhật ký cuộn, mới nhất trước. Sử dụng offset/limit cho phân trang.
bash
query GetAppLogs($offset: Int!, $limit: Int!) {
appLogs(offset: $offset, limit: $limit)
}query
appLogPath
Lấy đường dẫn hệ thống tệp tuyệt đối của tệp nhật ký hiện tại.
bash
query GetAppLogPath {
appLogPath
}mutation
clearAppLogs
Cắt ngắn tệp nhật ký hiện tại.
bash
mutation ClearAppLogs {
clearAppLogs
}