How to add Lager plugins to RabbitMQ

286 views
Skip to first unread message

biiiipy

unread,
Jan 25, 2018, 8:18:23 AM1/25/18
to rabbitmq-users
Hi, newbie question here, but:

How does one add a Lager plugin to RabbitMQ (on Windows)? Specifically I want to add custom log formatter - https://github.com/botsunit/lager_json_formatter

Thanks!

Luke Bakken

unread,
Feb 20, 2018, 10:55:01 AM2/20/18
to rabbitmq-users
Hello,

Did you succeed in doing this yourself? The general process would be -

* Clone and compile lager_json_formatter using the same version of Erlang you're using
* Copy the beam files to the code path for RabbitMQ
* Configure lager as described using in the %AppData%\RabbitMQ\advanced.config file

What version of RabbitMQ and Erlang are you using?

Thanks -
Luke

biiiipy

unread,
Feb 20, 2018, 12:03:57 PM2/20/18
to rabbitmq-users
Thanks for your reply! Yeah, in the end I came to a similar solution, but it took me a loooong time to figure it all out, cause I'm not familiar with erlang. But thanks none the less!
Reply all
Reply to author
Forward
0 new messages