Replies: 2 comments
-
@71a1den do you expect us to guess as to what exactly your custom plugin does?
You did not bother sharing even a few logging-related lines of your code so I won't bother providing any more details, e.g. what must happen for RabbitMQ to identify an Erlang application as a plugin. |
Beta Was this translation helpful? Give feedback.
-
@71a1den - the BEST way for you to get assistance is to create a git repository on GitHub that I can clone, with your code in it. One immediate suggestion I can make is that you should be using the logging macros - https://www.erlang.org/doc/apps/kernel/logger.html |
Beta Was this translation helpful? Give feedback.
-
Community Support Policy
RabbitMQ version used
4.0.5
Erlang version used
27.2.x
Operating system (distribution) used
Windows Docker Desktop 4.38.0
How is RabbitMQ deployed?
Community Docker image
rabbitmq-diagnostics status output
Logs from node 1 (with sensitive values edited out)
Logs from node 2 (if applicable, with sensitive values edited out)
See https://www.rabbitmq.com/docs/logging to learn how to collect logs
Logs from node 3 (if applicable, with sensitive values edited out)
See https://www.rabbitmq.com/docs/logging to learn how to collect logs
rabbitmq.conf
There was no rabbitmq.conf only /etc/rabbitmq/conf.d/10-defaults.conf
Steps to deploy RabbitMQ cluster
docker run -d --hostname my-rabbit --name ecomm-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:management
Steps to reproduce the behavior in question
advanced.config
See https://www.rabbitmq.com/docs/configure#config-location to learn how to find advanced.config file location
Application code
Kubernetes deployment file
What problem are you trying to solve?
Hello RabbitMQ Community,
I'm developing a custom RabbitMQ plugin based on the example from the rabbitmq-metronome repository . Despite enabling and activating the plugin, I'm unable to see any logs from it either in the console or in the specified log file. Here are the steps I've try:
Despite these steps, no logs appear from my plugin.
Please help me identify why the logs from my plugin are not appearing? I've checked the permissions and ensured that the plugin is enabled and running. Any suggestions would be greatly appreciated.
Thank you!
UPD:
@lukebakken I have added a link to the GitHub repository with the example of my_plugin. Please forgive me for not realizing it sooner—I was absolutely certain that the reason the plugin enabled successfully but without producing logs was due to a missing option or flag. :(
UPD 22.02.2025:
@michaelklishin I tested both loggers — rabbit_log and logger:error—but without success. It seems like the Docker container isn't handling any of the loggers properly in my case. Unfortunately, I’m unable to reply directly since my question has been marked as Locked.
Beta Was this translation helpful? Give feedback.
All reactions