janus 开启日志插件

 ̄綄美尐妖づ 提交于 2020-08-05 08:24:46

出错提示:

Logger plugins folder: /opt/janus/lib/janus/loggers
[FATAL] [janus.c:main:3882]  Couldn't access logger plugins folder...


解决

        配置工程的时候,打开日志插件模块

./configure --prefix=/opt/janus --enable-websockets --disable-docs -disable-plugin-lua --enable-json-logger


说明

        当指定了--enable-json-logger,ENABLE_JSONLOGGER_TRUE宏定义定义为1,打开Makefile.in文件中的生效@ENABLE_JSONLOGGER_TRUE@am__append_34 = loggers/libjanus_jsonlog.la,

出错提示:

Adding 1 external loggers
Logger plugins folder: /opt/janus/lib/janus/loggers
Loading logger plugin 'libjanus_jsonlog.so'...
[ERR] [config.c:janus_config_parse:191]   -- Error reading configuration file 'janus.logger.jsonlog.jcfg'... error 2 (No such file or directory)
[WARN] Couldn't find .jcfg configuration file (janus.logger.jsonlog), trying .cfg
[ERR] [config.c:janus_config_parse:191]   -- Error reading configuration file 'janus.logger.jsonlog.cfg'... error 2 (No such file or directory)





解决

        修改配置文件夹中的日志插件名称

mv janus.logger.jsonlog.jcfg.sample janus.logger.jsonlog.jcfg



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!