erlang lager_系统日志驱动程序故障
我试图在我的项目中使用erlang lager_系统日志驱动程序故障,erlang,rebar,Erlang,Rebar,我试图在我的项目中使用lager\u syslog,但似乎缺少一个驱动程序 这在我的rebar.conf中: {deps, [ ... {lager_syslog, {git, "https://github.com/basho/lager_syslog.git", {branch, master}}} ]}. 我的测试处理程序: {lager_syslog_backend, ["test", local1, info]}, 错误: 19:
lager\u syslog
,但似乎缺少一个驱动程序
这在我的rebar.conf
中:
{deps, [
...
{lager_syslog, {git, "https://github.com/basho/lager_syslog.git", {branch, master}}}
]}.
我的测试处理程序:
{lager_syslog_backend, ["test", local1, info]},
错误:
19:29:09.981 [error] Lager failed to install handler {lager_syslog_backend,{"test",local1}} into lager_event, retrying later : {error,
{{shutdown,
{failed_to_start_child,
syslog,
"could not load driver syslog_drv: \"cannot open shared object file: No such file or directory\""}},
{syslog_app,
start,
[normal,
[]]}}}
有什么建议吗?感谢Kenneth Lakin在邮件列表中回答了我的问题 IIRC,rebar3将端口编译器移出到rebar3插件,而不是 将其与核心项目打包。据我所见,rebar2 依赖it的项目将无法加载其港口驱动程序 加 到项目中的rebar.conf,清理并重建。(系统日志项目) 是lager_syslog的端口驱动程序所在的位置。) 另见:
{overrides,
[{override, syslog, [
{plugins, [pc]},
{artifacts, ["priv/syslog_drv.so"]},
{provider_hooks, [
{post,
[
{compile, {pc, compile}},
{clean, {pc, clean}}
]
}]
}
]}
]}.