API 参考
App Logs
读取和清除 PlainApp 的滚动日志文件。用于调试——仅限开发者模式。
类型定义
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.操作
query
appLogs
从滚动日志文件读取日志行,最新的在前。使用 offset/limit 进行分页。
bash
query GetAppLogs($offset: Int!, $limit: Int!) {
appLogs(offset: $offset, limit: $limit)
}query
appLogPath
获取当前日志文件的绝对文件系统路径。
bash
query GetAppLogPath {
appLogPath
}mutation
clearAppLogs
清空当前日志文件。
bash
mutation ClearAppLogs {
clearAppLogs
}