[CSHARP-2829] Add logging to the driver Created: 31/Oct/19 Updated: 18/Apr/22 Resolved: 29/Apr/20 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Epic | Priority: | Major - P3 |
| Reporter: | Esha Bhargava | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | FY21Q1, driver-planning-backlog | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Description |
| Comments |
| Comment by Esha Bhargava [ 29/Apr/20 ] | ||||||||||||||||||
|
We'll do this as a part of the .Net ticket generated from DRIVERS-1204 | ||||||||||||||||||
| Comment by Robert Stam [ 27/Apr/20 ] | ||||||||||||||||||
|
There already is some support in the driver for logging. You can register an event subscriber that will log all events raised by the driver. To log all events raised by the driver configure the MongoClientSettings in code to add a cluster configurator:
which uses the following helper method:
This isn't particularly easy to use, and it also only logs Events. We probably want to decouple logging from Events at some point. |