[erlang-questions] no logger output using ?LOG macros in release
Mon Mar 25 20:32:46 CET 2019
See if you are using any log formatters or handlers -- those may not be
direct dependencies of your application, and therefore do not get included
in the final release. You will need to add these dependencies to the
release independently so that they are present to run and handle output.
The rebar3 shell and other interactive modes can dynamically load libraries
from disk and won't show that little gotcha at all.
On Mon, Mar 25, 2019 at 1:47 PM Mark Geib <mark.geib.44@REDACTED> wrote:
> I have a problem where I see no logger output in a release built with
> rebar3 using the new ?LOG macros. If I use the logger: functions
> everything is working fine. Decided to change to use the macros in order
> to get able to include MFA, line number, etc. in templates.
> Also, doing a dev release build and then running interactively everything
> works fine with the ?LOG macros. It’s like the
> prod builds are missing something compared to dev build.
> Thanks in advance for any help.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions