janus 开启日志插件

出错提示:

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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值