【文件属性】:
文件名称:trace命令-c语言 用指针作为函数返回值详解
文件大小:2.02MB
文件格式:PDF
更新时间:2024-07-02 05:06:44
EMQ MQTT
11.12 trace命命命令令令
trace命令用于追踪某个客户端或 Topic,打印日志信息到文件。
trace list 查询全部开启的追踪
trace client 开启 Client追踪,日志到文件
trace client off 关闭 Client追踪
trace topic 开启 Topic追踪,日志到文件
trace topic off 关闭 Topic追踪
11.12.1 trace client
开启 Client追踪:
$ ./bin/emqttd_ctl trace client clientid log/clientid_trace.log
trace client clientid successfully.
11.12.2 trace client off
关闭 Client追踪:
$ ./bin/emqttd_ctl trace client clientid off
stop to trace client clientid successfully.
11.12.3 trace topic
开启 Topic追踪:
$ ./bin/emqttd_ctl trace topic topic log/topic_trace.log
trace topic topic successfully.
11.12.4 trace topic off
关闭 Topic追踪:
11.12. trace命命命令令令 93