-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Logging for RabbitMQ Component #564
Labels
area-integrations
Issues pertaining to Aspire Integrations packages
Milestone
Comments
eerhardt
added
the
area-integrations
Issues pertaining to Aspire Integrations packages
label
Oct 28, 2023
eerhardt
added a commit
that referenced
this issue
Nov 1, 2023
eerhardt
added a commit
that referenced
this issue
Nov 2, 2023
Add an EventSource listener to listen to the RabbitMQ event source which logs info, warn, and error messages. Forward these messages to an ILogger. Fix #564
eerhardt
added a commit
that referenced
this issue
Nov 2, 2023
Add an EventSource listener to listen to the RabbitMQ event source which logs info, warn, and error messages. Forward these messages to an ILogger. Fix #564
eerhardt
added a commit
that referenced
this issue
Nov 2, 2023
* Implement RabbitMQ logging Add an EventSource listener to listen to the RabbitMQ event source which logs info, warn, and error messages. Forward these messages to an ILogger. Fix #564 * Stop coding like a dinosaur.
eerhardt
added a commit
that referenced
this issue
Nov 2, 2023
* Implement RabbitMQ logging Add an EventSource listener to listen to the RabbitMQ event source which logs info, warn, and error messages. Forward these messages to an ILogger. Fix #564 * Stop coding like a dinosaur.
Reopening to backport to preview1. |
davidfowl
pushed a commit
that referenced
this issue
Nov 2, 2023
Fixed with #665 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
RabbitMQ doesn't work directly with ILogger. However, it does have an EventSource. See https://github.com/rabbitmq/rabbitmq-dotnet-client/blob/a0321c6c2203cedeacdd5c1ec5bcdc924e85a842/projects/RabbitMQ.Client/client/logging/RabbitMqClientEventSource.cs#L38.
We could listen to that EventSource and pipe the EventSource events to an ILogger so the messages get logged correctly.
The text was updated successfully, but these errors were encountered: