版权声明:欢迎大家转载,转载请声明转载地址http://blog.csdn.net/u012377333,谢谢大家。

[plain] view plaincopy
  1. # =================================================================
  2. # Logging
  3. # 日志信息
  4. # =================================================================
  5. # Places to log to. Use multiple log_dest lines for multiple
  6. # logging destinations.
  7. # 记录日志,使用多个log_dest行对应多个日志信息的描述
  8. #
  9. # Possible destinations are: stdout stderr syslog topic file
  10. # log_dest可能的选项有: stdout stderr syslog topic file
  11. #
  12. # stdout and stderr log to the console on the named output.
  13. # stdout和stderr的日志输出在控制台
  14. #
  15. # syslog uses the userspace syslog facility which usually ends up
  16. # in /var/log/messages or similar.
  17. # syslog使用用户空间记录日志的级别通常保存在/var/log/messages或者邮件中
  18. #
  19. # topic logs to the broker topic '$SYS/broker/log/<severity>',
  20. # 主题日志保存在代理服务器的主题日志路径下面 '$SYS/broker/log/<severity>'
  21. #
  22. # where severity is one of D, E, W, N, I, M which are debug, error,
  23. # warning, notice, information and message. Message type severity is used by
  24. # the subscribe/unsubscribe log_types and publishes log messages to
  25. # $SYS/broker/log/M/susbcribe or $SYS/broker/log/M/unsubscribe.
  26. # 当安全级别为D, E, W, N, I, M分别对应为调试, 错误, 警告, 注意, 信息, 消息.
  27. # 消息安全类型用于订阅/取消订阅的消息类型时,发送的日志信息保存在
  28. # $SYS/broker/log/M/susbcribe or $SYS/broker/log/M/unsubscribe
  29. #
  30. # The file destination requires an additional parameter which is the file to be
  31. # logged to, e.g. "log_dest file /var/log/mosquitto.log". The file will be
  32. # closed and reopened when the broker receives a HUP signal. Only a single file
  33. # destination may be configured.
  34. #
  35. # Note that if the broker is running as a Windows service it will default to
  36. # "log_dest none" and neither stdout nor stderr logging is available.
  37. # Use "log_dest none" if you wish to disable logging.
  38. log_dest file /var/log/mosquitto.log
  39. # If using syslog logging (not on Windows), messages will be logged to the
  40. # "daemon" facility by default. Use the log_facility option to choose which of
  41. # local0 to local7 to log to instead. The option value should be an integer
  42. # value, e.g. "log_facility 5" to use local5.
  43. #log_facility 5
  44. # Types of messages to log. Use multiple log_type lines for logging
  45. # multiple types of messages.
  46. # Possible types are: debug, error, warning, notice, information,
  47. # none, subscribe, unsubscribe, websockets, all.
  48. # Note that debug type messages are for decoding the incoming/outgoing
  49. # network packets. They are not logged in "topics".
  50. #log_type error
  51. #log_type warning
  52. #log_type notice
  53. log_type all
  54. # Change the websockets logging level. This is a global option, it is not
  55. # possible to set per listener. This is an integer that is interpreted by
  56. # libwebsockets as a bit mask for its lws_log_levels enum. See the
  57. #log_facility 5
  58. # If using syslog logging (not on Windows), messages will be logged to the
  59. # "daemon" facility by default. Use the log_facility option to choose which of
  60. # local0 to local7 to log to instead. The option value should be an integer
  61. # value, e.g. "log_facility 5" to use local5.
  62. # Types of messages to log. Use multiple log_type lines for logging
  63. # multiple types of messages.
  64. # Possible types are: debug, error, warning, notice, information,
  65. # none, subscribe, unsubscribe, websockets, all.
  66. #log_facility 5
  67. # Types of messages to log. Use multiple log_type lines for logging
  68. # multiple types of messages.
  69. # Possible types are: debug, error, warning, notice, information,
  70. # none, subscribe, unsubscribe, websockets, all.
  71. # Note that debug type messages are for decoding the incoming/outgoing
  72. # network packets. They are not logged in "topics".
  73. # where severity is one of D, E, W, N, I, M which are debug, error,
  74. # warning, notice, information and message. Message type severity is used by
  75. # the subscribe/unsubscribe log_types and publishes log messages to
  76. # $SYS/broker/log/M/susbcribe or $SYS/broker/log/M/unsubscribe.
  77. # 当安全级别为D, E, W, N, I, M分别对应为调试, 错误, 警告, 注意, 信息, 消息.
  78. # 消息安全类型用于订阅/取消订阅的消息类型时,发送的日志信息保存在
  79. # $SYS/broker/log/M/susbcribe or $SYS/broker/log/M/unsubscribe
  80. #
  81. # The file destination requires an additional parameter which is the file to be
  82. # logged to, e.g. "log_dest file /var/log/mosquitto.log". The file will be
  83. # closed and reopened when the broker receives a HUP signal. Only a single file
  84. # destination may be configured.
  85. #
  86. # Note that if the broker is running as a Windows service it will default to
  87. # "log_dest none" and neither stdout nor stderr logging is available.
  88. # Use "log_dest none" if you wish to disable logging.
  89. log_dest file /var/log/mosquitto.log
  90. # If using syslog logging (not on Windows), messages will be logged to the
  91. # value, e.g. "log_facility 5" to use local5.
  92. #
  93. #log_facility 5
  94. # Types of messages to log. Use multiple log_type lines for logging
  95. # multiple types of messages.
  96. # in /var/log/messages or similar.
  97. # syslog使用用户空间记录日志的级别通常保存在/var/log/messages或者邮件中
  98. #
  99. # topic logs to the broker topic '$SYS/broker/log/<severity>',
  100. # 主题日志保存在代理服务器的主题日志路径下面 '$SYS/broker/log/<severity>'
  101. #
  102. # where severity is one of D, E, W, N, I, M which are debug, error,
  103. # warning, notice, information and message. Message type severity is used by
  104. # the subscribe/unsubscribe log_types and publishes log messages to
  105. # $SYS/broker/log/M/susbcribe or $SYS/broker/log/M/unsubscribe.
  106. # 当安全级别为D, E, W, N, I, M分别对应为调试, 错误, 警告, 注意, 信息, 消息.
  107. # 消息安全类型用于订阅/取消订阅的消息类型时,发送的日志信息保存在
  108. # $SYS/broker/log/M/susbcribe or $SYS/broker/log/M/unsubscribe
  109. #
  110. # The file destination requires an additional parameter which is the file to be
  111. # logged to, e.g. "log_dest file /var/log/mosquitto.log". The file will be
  112. # closed and reopened when the broker receives a HUP signal. Only a single file
  113. # destination may be configured.
  114. #
  115. # Note that if the broker is running as a Windows service it will default to
  116. # "log_dest none" and neither stdout nor stderr logging is available.
  117. # Use "log_dest none" if you wish to disable logging.
  118. log_dest file /var/log/mosquitto.log
  119. # If using syslog logging (not on Windows), messages will be logged to the
  120. # "daemon" facility by default. Use the log_facility option to choose which of
  121. # local0 to local7 to log to instead. The option value should be an integer
  122. # value, e.g. "log_facility 5" to use local5.
  123. #
  124. #log_facility 5
  125. # Types of messages to log. Use multiple log_type lines for logging
  126. # multiple types of messages.
  127. # 设置日志保存的消息类型.使用多个log_type列对应多个日志的消息类型
  128. # Possible types are: debug, error, warning, notice, information,
  129. # none, subscribe, unsubscribe, websockets, all.
  130. # 有效的类型:debug, error, warning, notice, information, none, suscribe, unsubscribe, websockets, all
  131. # Note that debug type messages are for decoding the incoming/outgoing
  132. # network packets. They are not logged in "topics".
  133. # 注意:debug类型,消息会被解码为输入/输出的网络包,如果作为topics不会被记录到日志
  134. #log_type error
  135. #log_type warning
  136. #log_type notice
  137. log_type all
  138. # Change the websockets logging level. This is a global option, it is not
  139. # possible to set per listener. This is an integer that is interpreted by
  140. # libwebsockets as a bit mask for its lws_log_levels enum. See the
  141. # libwebsockets documentation for more details. "log_type websockets" must also
  142. # be enabled.
  143. # 设置websockets的日志级别,是一个全局的选项,但不是每个监听器都生效
  144. # 可以当做libwebsockets的位掩码的整数作为lws_log_level的枚举
  145. # 通过libwebsockets文档查看详情
  146. # ‘log_type websockets’ 必须设置为生效才能设置这个参数
  147. #websockets_log_level 0
  148. # If set to true, client connection and disconnection messages will be included
  149. #websockets_log_level 0
  150. # If set to true, client connection and disconnection messages will be included
  151. # in the log.
  152. # 是否保存客户端的连接和断开连接的信息到日志
  153. connection_messages true
  154. # If set to true, add a timestamp value to each log message.
  155. # 是否设置日志时间
  156. log_timestamp true

Mosquitto配置----日志设置相关推荐

  1. 07.配置日志的存储路径、设置日志的格式

    代码:https://github.com/NIGHTFIGHTING/spring_boot_learning/tree/master/07/agan-boot/agan-boot-log 配置日志 ...

  2. Confluence 6 配置日志

    我们推荐你根据你的需求来配置你自己的 Confluence 日志.你可以有下面 2 种方法来修改你的日志: 通过 Confluence 管理员控制台进行配置 – 你的修改仅在本次修改有效,下次重启后将 ...

  3. apache日志设置方法:按时间、按大小记录

    apache日志设置方法:按时间.按大小记录 14九 一.apache日志按日期记录 pache的配置文件中找到 ErrorLog logs/error_log CustomLog logs/acce ...

  4. python配置日志的几种方式

    使用的是logging模块,关于logging模块内容,可以看我的另一篇博客:https://www.cnblogs.com/kuxingseng95/p/9464347.html 作为开发者,我们一 ...

  5. log4j配置日志系统成功 (转)

    .引言: <log4j相比System.out的优势>(自己blog中的文章)     Log4j就是帮助开发人员进行日志输出管理的API类库.它最重要的特点就可以配置文件灵活的设置日 志 ...

  6. log4j中用变量配置日志输出文件位置

    http://sharep.blog.51cto.com/539048/143734 log4j中配置日志文件相对路径 2009-03-30 18:52:55 标签:log4j 休闲 职场 这篇文章写 ...

  7. requirednew基于xml配置日志不回滚_Mybatis 系列 4:引入日志框架

    为什么要用日志? 我们以前要看一个信息,一般使用的是 System.out.println 来打印的,额,这种方式比较 low,需要在代码里各种写 System.out.println,是会受到鄙视的 ...

  8. java nginx 例子_Nginx配置日志

    本篇文章帮大家学习Nginx配置日志,包含了Nginx配置日志使用方法.操作技巧.实例演示和注意事项,有一定的学习价值,大家可以用来参考. 本节介绍如何在NGINX中配置日志记录错误和处理的请求.在本 ...

  9. java日志——修改日志管理器配置+日志本地化

    [0]README 0.1) 本文描述+源代码均 转自 core java volume 1, 旨在理解 java日志--修改日志管理器配置+日志本地化 的相关知识: [1]修改日志管理器配置 1.1 ...

最新文章

  1. SAP APO 介绍
  2. 《网络安全——应用技术与工程实践》
  3. Spring事务管理介绍
  4. python pip国内源_Python 修改pip源为国内源
  5. Asterisk 并发量到100后就出现拨打电话挂机问题
  6. 面试官系统精讲Java源码及大厂真题 - 07 List 源码会问哪些面试题
  7. uboot命令及内核启动参数
  8. 大数据分析有哪些分析模型
  9. 百度地图出现网格,不显示地图
  10. 【Silverlight】Bing Maps学习系列(八):使用Bing Maps Silverlight Control加载自己部署的Google Maps...
  11. SoapUI测试webservice接口
  12. java调用zebra斑马打印条码+英文+数字+中文
  13. xp计算机启动检测硬盘,winxp系统如何设置开机自检修复硬盘
  14. (C语言代码分享):车辆信息管理系统源代码来了。
  15. Wox插件之程序员不安装会死系列
  16. FOTOO-疫情下,企业如何线上组织活动,输出企业文化
  17. 技术写作中的那些神兵利器
  18. 添加指定的元素,到指定的位置,后面的元素整体后移一位
  19. 一字一句教你聊天,快速把女生聊“嗨”起来
  20. 记一次太阳神三国杀的编译

热门文章

  1. MySQL中的行级锁,表级锁,页级锁
  2. MySQL连不上,报Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
  3. Proactor设计模式
  4. 操作系统:了解一下磁盘结构
  5. Hibernate实现limit查询报错 unexpected token: ? near line 1, column 30 [from cn.com.bean.Layer limit ? ,
  6. 什么是脱离文档流?什么是文档流?
  7. php职能等级,php如何设置报错级别
  8. html表格选择一行,vue + element table表格如何默认选中第一行
  9. 上海银行数据中心迎来智能机器“巡检员”
  10. 成功解决eric6 Create Dialog Code XXX.py exists but does not contain any classes