# ================================================================= # Logging # 日志信息 # ================================================================= # Places to log to. Use multiple log_dest lines for multiple # logging destinations. # 记录日志,使用多个log_dest行对应多个日志信息的描述 # # Possible destinations are: stdout stderr syslog topic file # log_dest可能的选项有: stdout stderr syslog topic file # # stdout and stderr log to the console on the named output. # stdout和stderr的日志输出在控制台 # # syslog uses the userspace syslog facility which usually ends up # in /var/log/messages or similar. # syslog使用用户空间记录日志的级别通常保存在/var/log/messages或者邮件中 # # topic logs to the broker topic '$SYS/broker/log/<severity>', # 主题日志保存在代理服务器的主题日志路径下面 '$SYS/broker/log/<severity>' # # where severity is one of D, E, W, N, I, M which are debug, error, # warning, notice, information and message. Message type severity is used by # the subscribe/unsubscribe log_types and publishes log messages to # $SYS/broker/log/M/susbcribe or $SYS/broker/log/M/unsubscribe. # 当安全级别为D, E, W, N, I, M分别对应为调试, 错误, 警告, 注意, 信息, 消息. # 消息安全类型用于订阅/取消订阅的消息类型时,发送的日志信息保存在 # $SYS/broker/log/M/susbcribe or $SYS/broker/log/M/unsubscribe # # Types of messages to log. Use multiple log_type lines for logging # multiple types of messages. # 设置日志保存的消息类型.使用多个log_type列对应多个日志的消息类型 # Possible types are: debug, error, warning, notice, information, # none, subscribe, unsubscribe,
mosquitto.conf之log配置
最新推荐文章于 2024-04-01 10:57:01 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)