出错提示:
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
来源:oschina
链接:https://my.oschina.net/u/4356413/blog/4306220