Logging for the .NET client

47 views
Skip to first unread message

pa...@paulomorgado.info

unread,
Apr 9, 2018, 7:27:52 PM4/9/18
to rabbitmq-users
I've been trying to use the RabbitMqConsoleEventListener (https://github.com/rabbitmq/rabbitmq-dotnet-client/blob/master/projects/client/RabbitMQ.Client/src/logging/RabbitMqConsoleEventListener.cs) but nothing gets written to the console.

Do I need to do anything other than instatiating the class?

Karl Nilsson

unread,
Apr 10, 2018, 6:49:47 AM4/10/18
to rabbitm...@googlegroups.com
No that should be it assuming you installed the client using nuget so it also installed the required dependency. 

On Tue, 10 Apr 2018 at 00:27 <pa...@paulomorgado.info> wrote:
I've been trying to use the RabbitMqConsoleEventListener (https://github.com/rabbitmq/rabbitmq-dotnet-client/blob/master/projects/client/RabbitMQ.Client/src/logging/RabbitMqConsoleEventListener.cs) but nothing gets written to the console.

Do I need to do anything other than instatiating the class?

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pa...@paulomorgado.info

unread,
Apr 25, 2018, 3:33:57 PM4/25/18
to rabbitmq-users
Yes! But I get nothing. Not even errors!

Does anyone have a working example?

Karl Nilsson

unread,
Apr 26, 2018, 3:43:59 AM4/26/18
to rabbitm...@googlegroups.com
IIRC it only really logs when it does auto reconnection. We could consider adding some more debug logging in other places should people find it useful.

Paulo Morgado

unread,
Sep 24, 2018, 10:38:59 AM9/24/18
to rabbitmq-users
Please, consider adding more instrumentation.

If you look at the .NET Framework, it has lots of instrumentation. For example: https://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-configure-network-tracing
Reply all
Reply to author
Forward
0 new messages