[erlang-questions] Setting in lager the log level during runtime

Martin Koroudjiev mrtndimitrov@REDACTED
Mon Feb 15 15:44:52 CET 2016


Sorry I forgot to reply to the list. Yes, the problem was that on the
production server, the console backend was not started.

Regards,
Martin

On 2/14/2016 10:19 PM, Mark Allen wrote:
> Hi.
>
> The OTP docs for gen_event:call state:
>
>     If the specified event handler is not installed, the function
>     returns {error,bad_module}.
>
> I see that the application is loaded from the screen shot; did you
> start the lager application and a console backend before trying to set
> a new log level?  "Starting" the application registers
> lager_console_backend as a gen_event handler. You may also want to use
> lager:trace_console/1
>
> Thanks.
>
> Mark
>
>
>
>
> On Sunday, February 7, 2016 11:06 AM, Martin Koroudjiev
> <mrtndimitrov@REDACTED> wrote:
>
>
> Hello,
>
> I have to trace a bug on a production server running lager. I
> connected to the node and tried to change the log level to debug but
> got a strange error - bad_module.
> I've checked and lager is running. Here is a screenshot of the commands:
>
>
>
> Thanks in advance,
> Martin
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
> http://erlang.org/mailman/listinfo/erlang-questions
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160215/12dbe488/attachment.htm>


More information about the erlang-questions mailing list