[CSHARP-470] Add logging to the Driver to help determine connection issues Created: 14/May/12  Updated: 26/Oct/15  Resolved: 18/Aug/14

Status: Closed
Project: C# Driver
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: 2.0

Type: Improvement Priority: Major - P3
Reporter: Craig Wilson Assignee: Unassigned
Resolution: Done Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CSHARP-1305 Integrate with Common.Logging Closed
Related
is related to CSHARP-985 Instrument hooks to enable tracing an... Closed

 Description   

We built an eventing system into the new Core library that can be implemented to hook into other logging libraries. A simple implementation has been provided that uses a TextWriter (needs to be thread-safe).



 Comments   
Comment by Githook User [ 26/Oct/15 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-470: added logging support.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/177407b2d674b48c7e2e8a1ad90ea3d1197cecc8

Comment by Craig Wilson [ 09/Jan/14 ]

It's currently under v2.0. Beware this is a very alpha state. In addition, in a different branch, the logging has been changed already, so everything is really in flux.

Comment by Wesley McClure [ 09/Jan/14 ]

Awesome, is the v3 branch not available on github?

Comment by Craig Wilson [ 09/Jan/14 ]

We have this added in to our next major version. I need to update the fix version on this. Thanks for the offer though.

Comment by Wesley McClure [ 09/Jan/14 ]

I'd be happy to implement this, I'd really like to use it on my own projects

Comment by Michael Catanzariti [ 01/Apr/13 ]

It would be very usefull to log each query sent to the server and to plug a powerful log framework like log4net.

Generated at Wed Feb 07 21:36:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.