Hello all,
I'm trying to configure JSON formatter in RabbitMQ. This is what I've inserted to /etc/rabbitmq/rabbitmq.config:
...
{rabbit, [
...
{log, [
{file, [{formatter,json}]}
]}
...
And with this config I'm getting the following error:
Application rabbit exited with reason: {{case_clause,{error,{invalid_formatter,json}}},{rabbit,start,[normal,[]]}}
I've tried reading trough the documentation and couldn't advance any further. I guess I may be doing something wrong. Could I please get some help on the right syntax on how to configure it?
Don't know if it's related, but I also consulted the schema mapping here:
and if you search for "{mapping, "log.file.formatter",",
you'll notice that it maps to "rabbit.log.file.formatter", but there's also numerous other mappings that will map to this one. Is it supposed to be like this?
Versions used:
- RabbitMQ 3.12.2 and 3.11.16
- Erlang 25.3.2.4 and 25.3.2 respectively
Thank you all for any help!
Regards,
Rui