XXTouch Elite
Open API返回首页
Open API返回首页
  1. 脚本管理
  • OpenAPI v3 (XXT)
    • 状态与授权
      • 检查服务配置
      • 检查授权状态
      • 绑定授权码
      • 获取远程服务开启状态
      • 打开远程访问
      • 关闭远程访问
      • 重启守护服务
      • 更新自己
      • 完整卸载
    • 文件管理
      • 列出目录文件
      • 新建一个目录
      • 删除一个目录
      • 重命名一个文件或目录(RAW)
      • 读取一个文件(RAW)
      • 写入一个文件(RAW)
      • 跳转下载一个文件
      • 导入一张照片到系统相册
    • 脚本管理
      • 选择一个脚本文件
      • 获取当前已经选择的脚本文件
      • 新建一个脚本文件
      • 删除一个脚本文件
      • 写入内容到脚本文件
      • 对明文脚本内容进行语法检测
      • 获取脚本运行状态
      • 停止脚本接口
      • 暂停脚本接口
      • 继续脚本接口
      • 运行已经选择的脚本
      • 远程启动脚本接口
      • 加密一个设备上的脚本文件
      • 加密一段明文脚本
      • 加密一段明文脚本并返回下载 URI
    • 设备管理
      • 远程截图
      • 设置设备名
      • 设置当前音量
      • 设置当前亮度
      • 获取设备信息
      • 发送一个通知
      • 打开一个 URL
      • 执行终端命令
      • 锁定屏幕
      • 解锁屏幕
      • 重建图标缓存
      • 注销
      • 重启
      • 用户态重启
      • 关机
    • 偏好设置
      • 打开调试窗口
      • 关闭调试窗口
      • 设置调试窗口颜色
      • 获取录制设置
      • 设置录制为经典格式
      • 设置录制为高精度格式
      • 设置录制包含音量加键
      • 设置录制不包含音量加键
      • 设置录制包含音量减键
      • 设置录制不包含音量减键
      • 获取音量键事件设置
      • 设置按一下音量加键的动作
      • 设置按一下音量减键的动作
      • 设置长按音量加键的动作
      • 设置长按音量减键的动作
      • 启用开机启动
      • 停用开机启动
      • 获取开机启动设置
      • 选择开机启动脚本
      • 获得用户偏好配置
      • 设置用户偏好配置
    • App 管理
      • App 列表
      • 安装 App
      • 卸载 App
      • 运行 App
      • 结束 App
      • 获取 App 图标
      • 获取混合 App 图标
      • 获取前台 App 方向
    • 进程词典
      • 设置进程词典条目的值
      • 查看进程词典条目的值
      • 推入条目到进程词典队列
      • 从进程词典队列弹出条目
      • 弹出进程词典队列所有条目
    • 清理模块
      • 清理 App 存档
    • 剪贴板
      • 读取剪贴板
      • 设置剪贴板
    • Web 管理
      GET
  • OpenAPI v1 (TouchElf)
    • 状态与授权
      • 可用性测试
      • 获取服务状态
      • 修改服务设置
    • 脚本管理
      • 列出脚本
        GET
      • 运行脚本
        POST
      • 调试脚本
        POST
      • 停止脚本
        POST
      • 加密脚本
        POST
      • 下载脚本
        GET
      • 上传脚本
        PUT
      • 删除脚本
        DELETE
      • 读取脚本日志
        GET
      • 删除脚本日志
        DELETE
      • 读取错误日志
        GET
    • 文件管理
      • 文件列表
      • 下载文件
      • 上传文件
      • 创建目录
      • 删除文件或目录
    • 设备管理
      • 获取截图
      • 注销设备
      • 重启设备
    • 模拟触摸
      • 手指按下
      • 手指移动
      • 手指抬起
    • 模拟按键
      • 按键按下
      • 按键抬起
  • OpenAPI v1 (TouchSprite)
    • 脚本管理
      • 设置运行脚本的路径
      • 运行脚本
      • 停止脚本
      • 脚本运行状态
    • 文件管理
      • 上传文件
      • 设备目录文件列表
      • 获取设备文件到本地
      • 删除设备文件
    • 设备管理
      • 获取设备号
      • 获取设备名
      • 设置设备名
      • 获取设备语言
      • 设置设备语言
      • 获取设备区域
      • 设置设备区域
      • 获取设备时区
      • 设置设备时区
      • 注销设备
      • 重启设备
  1. 脚本管理

读取错误日志

GET
/api/system/log/script_error.log

请求参数

Query 参数
last
integer 
读取错误日志的行数
必需
示例值:
20

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:46952/api/system/log/script_error.log?last=20'

返回响应

🟢206成功
text/plain
Body
object {0}
示例
2022-07-02 16:16:00.775 lua[5963:613336] SimulateTouch @ 920 in SimulateTouch_Move: sendEventStream {
    events =     (
                {
            coordinateSpace = content;
            inputType = hand;
            timeOffset = 0;
            touches =             (
                                {
                    finger = 1;
                    id = 1;
                    inputType = finger;
                    majorRadius = "0.04";
                    mask = 0;
                    minorRadius = "0.03";
                    phase = moved;
                    pressure = 0;
                    twist = 90;
                    x = "0.4698067632850241";
                    y = "0.7098214285714286";
                }
            );
        }
    );
}
2022-07-02 16:16:00.786 lua[5963:613336] DeviceConfigurator @ 291 in DeviceConfigurator_System_StreamSleepInMilliseconds: time elapsed 10.24ms
2022-07-02 16:16:00.786 lua[5963:613336] SimulateTouch @ 920 in SimulateTouch_Move: sendEventStream {
    events =     (
                {
            coordinateSpace = content;
            inputType = hand;
            timeOffset = 0;
            touches =             (
                                {
                    finger = 1;
                    id = 1;
                    inputType = finger;
                    majorRadius = "0.04";
                    mask = 0;
                    minorRadius = "0.03";
                    phase = moved;
                    pressure = 0;
                    twist = 90;
                    x = "0.5048309178743962";
                    y = "0.7098214285714286";
                }
            );
        }
    );
}
2022-07-02 16:16:00.797 lua[5963:613336] DeviceConfigurator @ 291 in DeviceConfigurator_System_StreamSleepInMilliseconds: time elapsed 10.06ms
2022-07-02 16:16:00.797 lua[5963:613336] SimulateTouch @ 920 in SimulateTouch_Move: sendEventStream {
    events =     (
                {
            coordinateSpace = content;
            inputType = hand;
            timeOffset = 0;
            touches =             (
                                {
                    finger = 1;
                    id = 1;
                    inputType = finger;
                    majorRadius = "0.04";
                    mask = 0;
                    minorRadius = "0.03";
                    phase = moved;
                    pressure = 0;
                    twist = 90;
                    x = "0.5471014492753623";
                    y = "0.7098214285714286";
                }
            );
        }
    );
}
2022-07-02 16:16:00.808 lua[5963:613336] DeviceConfigurator @ 291 in DeviceConfigurator_System_StreamSleepInMilliseconds: time elapsed 10.04ms
2022-07-02 16:16:00.809 lua[5963:613336] SimulateTouch @ 920 in SimulateTouch_Move: sendEventStream {
    events =     (
                {
            coordinateSpace = content;
            inputType = hand;
            timeOffset = 0;
            touches =             (
                                {
                    finger = 1;
                    id = 1;
                    inputType = finger;
                    majorRadius = "0.04";
                    mask = 0;
                    minorRadius = "0.03";
                    phase = moved;
                    pressure = 0;
                    twist = 90;
                    x = "0.5905797101449275";
                    y = "0.7098214285714286";
                }
            );
        }
    );
}
2022-07-02 16:16:00.819 lua[5963:613336] DeviceConfigurator @ 291 in DeviceConfigurator_System_StreamSleepInMilliseconds: time elapsed 9.57ms
2022-07-02 16:16:00.820 lua[5963:613336] SimulateTouch @ 920 in SimulateTouch_Move: sendEventStream {
    events =     (
                {
            coordinateSpace = content;
            inputType = hand;
            timeOffset = 0;
            touches =             (
                                {
                    finger = 1;
                    id = 1;
                    inputType = finger;
                    majorRadius = "0.04";
                    mask = 0;
                    minorRadius = "0.03";
                    phase = moved;
                    pressure = 0;
                    twist = 90;
                    x = "0.6364734299516909";
                    y = "0.7098214285714286";
                }
            );
        }
    );
}
2022-07-02 16:16:00.831 lua[5963:613336] DeviceConfigurator @ 291 in DeviceConfigurator_System_StreamSleepInMilliseconds: time elapsed 11.29ms
2022-07-02 16:16:00.832 lua[5963:613336] SimulateTouch @ 920 in SimulateTouch_Move: sendEventStream {
    events =     (
                {
            coordinateSpace = content;
            inputType = hand;
            timeOffset = 0;
            touches =             (
                                {
                    finger = 1;
                    id = 1;
                    inputType = finger;
                    majorRadius = "0.04";
                    mask = 0;
                    minorRadius = "0.03";
                    phase = moved;
                    pressure = 0;
                    twist = 90;
                    x = "0.6896135265700483";
                    y = "0.7092633928571429";
                }
            );
        }
    );
}
2022-07-02 16:16:00.843 lua[5963:613336] DeviceConfigurator @ 291 in DeviceConfigurator_System_StreamSleepInMilliseconds: time elapsed 10.12ms
2022-07-02 16:16:00.843 lua[5963:613336] SimulateTouch @ 920 in SimulateTouch_Move: sendEventStream {
    events =     (
                {
            coordinateSpace = content;
            inputType = hand;
            timeOffset = 0;
            touches =             (
                                {
                    finger = 1;
                    id = 1;
                    inputType = finger;
                    majorRadius = "0.04";
                    mask = 0;
                    minorRadius = "0.03";
                    phase = moved;
                    pressure = 0;
                    twist = 90;
                    x = "0.7451690821256038";
                    y = "0.7092633928571429";
                }
            );
        }
    );
}
2022-07-02 16:16:00.855 lua[5963:613336] DeviceConfigurator @ 291 in DeviceConfigurator_System_StreamSleepInMilliseconds: time elapsed 11.28ms
2022-07-02 16:16:00.856 lua[5963:613336] SimulateTouch @ 920 in SimulateTouch_Move: sendEventStream {
    events =     (
                {
            coordinateSpace = content;
            inputType = hand;
            timeOffset = 0;
            touches =             (
                                {
                    finger = 1;
                    id = 1;
                    inputType = finger;
                    majorRadius = "0.04";
                    mask = 0;
                    minorRadius = "0.03";
                    phase = moved;
                    pressure = 0;
                    twist = 90;
                    x = "0.8019323671497585";
                    y = "0.7092633928571429";
                }
            );
        }
    );
}
2022-07-02 16:16:00.866 lua[5963:613336] DeviceConfigurator @ 291 in DeviceConfigurator_System_StreamSleepInMilliseconds: time elapsed 10.04ms
2022-07-02 16:16:00.867 lua[5963:613336] SimulateTouch @ 920 in SimulateTouch_Move: sendEventStream {
    events =     (
                {
            coordinateSpace = content;
            inputType = hand;
            timeOffset = 0;
            touches =             (
                                {
                    finger = 1;
                    id = 1;
                    inputType = finger;
                    majorRadius = "0.04";
                    mask = 0;
                    minorRadius = "0.03";
                    phase = moved;
                    pressure = 0;
                    twist = 90;
                    x = "0.8611111111111112";
                    y = "0.7092633928571429";
                }
            );
        }
    );
}
2022-07-02 16:16:00.878 lua[5963:613336] DeviceConfigurator @ 291 in DeviceConfigurator_System_StreamSleepInMilliseconds: time elapsed 10.03ms
2022-07-02 16:16:00.878 lua[5963:613336] SimulateTouch @ 920 in SimulateTouch_Move: sendEventStream {
    events =     (
                {
            coordinateSpace = content;
            inputType = hand;
            timeOffset = 0;
            touches =             (
                                {
                    finger = 1;
                    id = 1;
                    inputType = finger;
                    majorRadius = "0.04";
                    mask = 0;
                    minorRadius = "0.03";
                    phase = moved;
                    pressure = 0;
                    twist = 90;
                    x = "0.9227053140096618";
                    y = "0.7092633928571429";
                }
            );
        }
    );
}
2022-07-02 16:16:00.889 lua[5963:613336] DeviceConfigurator @ 291 in DeviceConfigurator_System_StreamSleepInMilliseconds: time elapsed 10.11ms
2022-07-02 16:16:00.890 lua[5963:613336] SimulateTouch @ 920 in SimulateTouch_Move: sendEventStream {
    events =     (
                {
            coordinateSpace = content;
            inputType = hand;
            timeOffset = 0;
            touches =             (
                                {
                    finger = 1;
                    id = 1;
                    inputType = finger;
                    majorRadius = "0.04";
                    mask = 0;
                    minorRadius = "0.03";
                    phase = moved;
                    pressure = 0;
                    twist = 90;
                    x = "0.9794685990338164";
                    y = "0.7103794642857143";
                }
            );
        }
    );
}
2022-07-02 16:16:00.900 lua[5963:613336] DeviceConfigurator @ 291 in DeviceConfigurator_System_StreamSleepInMilliseconds: time elapsed 10.04ms
2022-07-02 16:16:00.901 lua[5963:613336] SimulateTouch @ 1135 in SimulateTouch_Off: sendEventStream {
    events =     (
                {
            coordinateSpace = content;
            inputType = hand;
            timeOffset = "0.03";
            touches =             (
                                {
                    finger = 1;
                    id = 1;
                    inputType = finger;
                    majorRadius = "0.04";
                    mask = 0;
                    minorRadius = "0.03";
                    phase = ended;
                    pressure = 0;
                    twist = 0;
                    x = "0.9842995169082126";
                    y = "0.7131696428571429";
                }
            );
        }
    );
}
2022-07-02 16:16:00.901 lua[5963:613336] SimulateTouch @ 1145 in SimulateTouch_Off: Finger 1 unlocked
修改于 2025-04-13 17:48:30
上一页
删除脚本日志
下一页
文件列表
Built with