日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

Mosquitto配置----日志设置

發(fā)布時(shí)間:2025/3/21 编程问答 15 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Mosquitto配置----日志设置 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
[plain]?view plaincopy
  • #?=================================================================??
  • #?Logging??
  • #?日志信息??
  • #?=================================================================??
  • ??
  • #?Places?to?log?to.?Use?multiple?log_dest?lines?for?multiple???
  • #?logging?destinations.??
  • #?記錄日志,使用多個(gè)log_dest行對(duì)應(yīng)多個(gè)日志信息的描述??
  • #??
  • #?Possible?destinations?are:?stdout?stderr?syslog?topic?file??
  • #?log_dest可能的選項(xiàng)有:?stdout?stderr?syslog?topic?file??
  • #??
  • #?stdout?and?stderr?log?to?the?console?on?the?named?output.??
  • #?stdout和stderr的日志輸出在控制臺(tái)??
  • #??
  • #?syslog?uses?the?userspace?syslog?facility?which?usually?ends?up???
  • #?in?/var/log/messages?or?similar.??
  • #?syslog使用用戶空間記錄日志的級(jí)別通常保存在/var/log/messages或者郵件中??
  • #??
  • #?topic?logs?to?the?broker?topic?'$SYS/broker/log/<severity>',???
  • #?主題日志保存在代理服務(wù)器的主題日志路徑下面?'$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āng)安全級(jí)別為D,?E,?W,?N,?I,?M分別對(duì)應(yīng)為調(diào)試,?錯(cuò)誤,?警告,?注意,?信息,?消息.??
  • #?消息安全類型用于訂閱/取消訂閱的消息類型時(shí),發(fā)送的日志信息保存在??
  • #?$SYS/broker/log/M/susbcribe?or?$SYS/broker/log/M/unsubscribe??
  • #??
  • #?The?file?destination?requires?an?additional?parameter?which?is?the?file?to?be??
  • #?logged?to,?e.g.?"log_dest?file?/var/log/mosquitto.log".?The?file?will?be??
  • #?closed?and?reopened?when?the?broker?receives?a?HUP?signal.?Only?a?single?file??
  • #?destination?may?be?configured.??
  • #??
  • #?Note?that?if?the?broker?is?running?as?a?Windows?service?it?will?default?to??
  • #?"log_dest?none"?and?neither?stdout?nor?stderr?logging?is?available.??
  • #?Use?"log_dest?none"?if?you?wish?to?disable?logging.??
  • log_dest?file?/var/log/mosquitto.log??
  • ??
  • #?If?using?syslog?logging?(not?on?Windows),?messages?will?be?logged?to?the??
  • #?"daemon"?facility?by?default.?Use?the?log_facility?option?to?choose?which?of??
  • #?local0?to?local7?to?log?to?instead.?The?option?value?should?be?an?integer??
  • #?value,?e.g.?"log_facility?5"?to?use?local5.??
  • #log_facility?5??
  • ??
  • #?Types?of?messages?to?log.?Use?multiple?log_type?lines?for?logging??
  • #?multiple?types?of?messages.??
  • #?Possible?types?are:?debug,?error,?warning,?notice,?information,???
  • #?none,?subscribe,?unsubscribe,?websockets,?all.??
  • #?Note?that?debug?type?messages?are?for?decoding?the?incoming/outgoing??
  • #?network?packets.?They?are?not?logged?in?"topics".??
  • #log_type?error??
  • #log_type?warning??
  • #log_type?notice??
  • log_type?all??
  • ??
  • #?Change?the?websockets?logging?level.?This?is?a?global?option,?it?is?not??
  • #?possible?to?set?per?listener.?This?is?an?integer?that?is?interpreted?by??
  • #?libwebsockets?as?a?bit?mask?for?its?lws_log_levels?enum.?See?the??
  • #log_facility?5??
  • #?If?using?syslog?logging?(not?on?Windows),?messages?will?be?logged?to?the??
  • #?"daemon"?facility?by?default.?Use?the?log_facility?option?to?choose?which?of??
  • #?local0?to?local7?to?log?to?instead.?The?option?value?should?be?an?integer??
  • #?value,?e.g.?"log_facility?5"?to?use?local5.??
  • ??
  • #?Types?of?messages?to?log.?Use?multiple?log_type?lines?for?logging??
  • #?multiple?types?of?messages.??
  • #?Possible?types?are:?debug,?error,?warning,?notice,?information,???
  • #?none,?subscribe,?unsubscribe,?websockets,?all.??
  • #log_facility?5??
  • ??
  • #?Types?of?messages?to?log.?Use?multiple?log_type?lines?for?logging??
  • #?multiple?types?of?messages.??
  • #?Possible?types?are:?debug,?error,?warning,?notice,?information,???
  • #?none,?subscribe,?unsubscribe,?websockets,?all.??
  • #?Note?that?debug?type?messages?are?for?decoding?the?incoming/outgoing??
  • #?network?packets.?They?are?not?logged?in?"topics".??
  • #?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āng)安全級(jí)別為D,?E,?W,?N,?I,?M分別對(duì)應(yīng)為調(diào)試,?錯(cuò)誤,?警告,?注意,?信息,?消息.??
  • #?消息安全類型用于訂閱/取消訂閱的消息類型時(shí),發(fā)送的日志信息保存在??
  • #?$SYS/broker/log/M/susbcribe?or?$SYS/broker/log/M/unsubscribe??
  • #??
  • #?The?file?destination?requires?an?additional?parameter?which?is?the?file?to?be??
  • #?logged?to,?e.g.?"log_dest?file?/var/log/mosquitto.log".?The?file?will?be??
  • #?closed?and?reopened?when?the?broker?receives?a?HUP?signal.?Only?a?single?file??
  • #?destination?may?be?configured.??
  • #??
  • #?Note?that?if?the?broker?is?running?as?a?Windows?service?it?will?default?to??
  • #?"log_dest?none"?and?neither?stdout?nor?stderr?logging?is?available.??
  • #?Use?"log_dest?none"?if?you?wish?to?disable?logging.??
  • log_dest?file?/var/log/mosquitto.log??
  • ??
  • #?If?using?syslog?logging?(not?on?Windows),?messages?will?be?logged?to?the??
  • #?value,?e.g.?"log_facility?5"?to?use?local5.??
  • #??
  • #log_facility?5??
  • ??
  • #?Types?of?messages?to?log.?Use?multiple?log_type?lines?for?logging??
  • #?multiple?types?of?messages.??
  • #?in?/var/log/messages?or?similar.??
  • #?syslog使用用戶空間記錄日志的級(jí)別通常保存在/var/log/messages或者郵件中??
  • #??
  • #?topic?logs?to?the?broker?topic?'$SYS/broker/log/<severity>',???
  • #?主題日志保存在代理服務(wù)器的主題日志路徑下面?'$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āng)安全級(jí)別為D,?E,?W,?N,?I,?M分別對(duì)應(yīng)為調(diào)試,?錯(cuò)誤,?警告,?注意,?信息,?消息.??
  • #?消息安全類型用于訂閱/取消訂閱的消息類型時(shí),發(fā)送的日志信息保存在??
  • #?$SYS/broker/log/M/susbcribe?or?$SYS/broker/log/M/unsubscribe??
  • #??
  • #?The?file?destination?requires?an?additional?parameter?which?is?the?file?to?be??
  • #?logged?to,?e.g.?"log_dest?file?/var/log/mosquitto.log".?The?file?will?be??
  • #?closed?and?reopened?when?the?broker?receives?a?HUP?signal.?Only?a?single?file??
  • #?destination?may?be?configured.??
  • #??
  • #?Note?that?if?the?broker?is?running?as?a?Windows?service?it?will?default?to??
  • #?"log_dest?none"?and?neither?stdout?nor?stderr?logging?is?available.??
  • #?Use?"log_dest?none"?if?you?wish?to?disable?logging.??
  • log_dest?file?/var/log/mosquitto.log??
  • ??
  • #?If?using?syslog?logging?(not?on?Windows),?messages?will?be?logged?to?the??
  • #?"daemon"?facility?by?default.?Use?the?log_facility?option?to?choose?which?of??
  • #?local0?to?local7?to?log?to?instead.?The?option?value?should?be?an?integer??
  • #?value,?e.g.?"log_facility?5"?to?use?local5.??
  • #??
  • #log_facility?5??
  • ??
  • #?Types?of?messages?to?log.?Use?multiple?log_type?lines?for?logging??
  • #?multiple?types?of?messages.??
  • #?設(shè)置日志保存的消息類型.使用多個(gè)log_type列對(duì)應(yīng)多個(gè)日志的消息類型??
  • #?Possible?types?are:?debug,?error,?warning,?notice,?information,???
  • #?none,?subscribe,?unsubscribe,?websockets,?all.??
  • #?有效的類型:debug,?error,?warning,?notice,?information,?none,?suscribe,?unsubscribe,?websockets,?all??
  • #?Note?that?debug?type?messages?are?for?decoding?the?incoming/outgoing??
  • #?network?packets.?They?are?not?logged?in?"topics".??
  • #?注意:debug類型,消息會(huì)被解碼為輸入/輸出的網(wǎng)絡(luò)包,如果作為topics不會(huì)被記錄到日志??
  • #log_type?error??
  • #log_type?warning??
  • #log_type?notice??
  • log_type?all??
  • ??
  • #?Change?the?websockets?logging?level.?This?is?a?global?option,?it?is?not??
  • #?possible?to?set?per?listener.?This?is?an?integer?that?is?interpreted?by??
  • #?libwebsockets?as?a?bit?mask?for?its?lws_log_levels?enum.?See?the??
  • #?libwebsockets?documentation?for?more?details.?"log_type?websockets"?must?also??
  • #?be?enabled.??
  • #?設(shè)置websockets的日志級(jí)別,是一個(gè)全局的選項(xiàng),但不是每個(gè)監(jiān)聽(tīng)器都生效??
  • #?可以當(dāng)做libwebsockets的位掩碼的整數(shù)作為lws_log_level的枚舉??
  • #?通過(guò)libwebsockets文檔查看詳情??
  • #?‘log_type?websockets’?必須設(shè)置為生效才能設(shè)置這個(gè)參數(shù)???
  • #websockets_log_level?0??
  • ??
  • #?If?set?to?true,?client?connection?and?disconnection?messages?will?be?included??
  • #websockets_log_level?0??
  • ??
  • #?If?set?to?true,?client?connection?and?disconnection?messages?will?be?included??
  • #?in?the?log.??
  • #?是否保存客戶端的連接和斷開(kāi)連接的信息到日志??
  • connection_messages?true??
  • ??
  • #?If?set?to?true,?add?a?timestamp?value?to?each?log?message.??
  • #?是否設(shè)置日志時(shí)間??
  • log_timestamp?true??

  • 總結(jié)

    以上是生活随笔為你收集整理的Mosquitto配置----日志设置的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

    如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。

    主站蜘蛛池模板: 精品视频一区在线观看 | 在线碰| 99精品视频免费版的特色功能 | 一本色道久久88加勒比—综合 | 免费黄在线 | 每日在线更新av | 国产精品免费无码 | www.色人阁.com| yy4138理论片动漫理论片 | 一区二区三区日韩在线 | 免费a级片在线观看 | 91丨porny丨海角社区 | 中国1级毛片 | 成年人网站免费观看 | 浮生影视在线观看免费 | 亚洲美女自拍视频 | 极品人妻一区二区三区 | 特一级黄色片 | 亚洲图片欧美日韩 | 亲切的金子餐桌片段的金子 | 青青草视频偷拍 | 成人a级大片 | 97日韩精品 | 亚欧洲精品在线视频免费观看 | 亚洲av无码专区首页 | 黄色福利视频网站 | 好吊妞视频在线 | 黄色三级三级三级三级 | 亚洲欧美韩日 | 草久久久久 | 蜜桃视频中文字幕 | 91黑丝在线观看 | 在线观看黄色小视频 | 校园春色亚洲色图 | 久久久久久久久99精品 | 亚洲v欧美v另类v综合v日韩v | 深田咏美在线x99av | 91久久伊人 | 国产区一区二区 | 在线精品观看 | 日韩va中文 | 一区二区一级片 | 欧美日韩三级在线观看 | 三级网站免费观看 | 久久成人国产 | 女尊高h男高潮呻吟 | 中文字幕亚洲在线 | 性の欲びの女javhd | av片免费看 | 午夜精品久久久久久久久久久久久 | 91在线免费视频观看 | 日本高清视频网站 | 91久久久久久久久久久久 | 性生活av | 天堂8在线| 精品动漫一区二区 | 操她视频网站 | 成人动漫在线观看 | 石原莉奈在线播放 | 精品国产乱码一区二区三区99 | 成人h动漫精品一区二区 | 成人黄色在线免费观看 | 激情五月五月婷婷 | 很嫩很紧直喷白浆h | 好吊色在线视频 | 亚洲成年人免费观看 | 国产精品一区无码 | 农村村妇真实偷人视频 | 免费看a网站 | 私人影院毛片 | 日本天堂免费a | 亚洲特黄视频 | 中国黄色一级毛片 | 久久成人免费电影 | 天堂在线免费观看视频 | 妓院一钑片免看黄大片 | 欧美不卡在线 | 老司机精品福利视频 | 久久久久久电影 | 动漫美女被到爽 | 午夜不卡久久精品无码免费 | 刘玥91精选国产在线观看 | 欧美成人精精品一区二区频 | 一区在线看 | 成人在线免费视频播放 | 国产精品久久久久影院老司 | 在线中出 | 色av中文字幕 | 欧美激情网站 | 一区二区三区韩国 | 国产吧在线 | 91亚洲免费 | 日韩高清精品免费观看 | 禁漫天堂在线 | 婷婷深爱网 | 亚洲精品66| 麻豆短视频在线观看 | 性免费网站 | 成人六区 |