Closed lfmunoz closed 6 years ago
I created a super simple project to reproduce the problem...
https://github.com/lfmunoz/rebar3_bug1719
Look at the Makefile in the root directory of the project
Works:
make server
Produces the reported error:
make server-config
Config files of that format require to be put in a list. Instead of
{lager, [
{log_root, "/var/log/hello"},
{handlers, [
{lager_console_backend, [{level, info}]},
{lager_file_backend, [{file, "error.log"}, {level, error}]},
{lager_file_backend, [{file, "console.log"}, {level, info}]}
]}
]}.
Use:
[
{lager, [
{log_root, "/var/log/hello"},
{handlers, [
{lager_console_backend, [{level, info}]},
{lager_file_backend, [{file, "error.log"}, {level, error}]},
{lager_file_backend, [{file, "console.log"}, {level, info}]}
]}
]}
].
And then everything will work fine.
Pre-Check
Willing and interested in helping fix the issue.
I am trying to add a lager.config file to my current project that uses lager so that I can control the format of the output log messages.
Environment
Current behaviour
Expected behaviour
Expected to rebar3 to run my application with lager.config file load, instead I get a crash.
Doesn't work:
Works:
I'm sure my lager.config file is correct as I copied it directly from lager documentation. I tried various versions some which I am using on other projects that work.
The rebar3.crashdump