[GODRIVER-2570] Easier debugging with standardized logging: logging specification Created: 07/Oct/22  Updated: 28/Oct/23  Resolved: 31/Jan/23

Status: Closed
Project: Go Driver
Component/s: Logging
Affects Version/s: None
Fix Version/s: 1.12.0

Type: New Feature Priority: Major - P3
Reporter: PM Bot Assignee: Preston Vasquez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by GODRIVER-2571 Add log messages to Command monitorin... Closed
is duplicated by GODRIVER-2665 Add "examples/logging" module to "exa... Closed
Issue split
split from DRIVERS-1677 Easier debugging with standardized lo... Implementing
Epic Link: Easier debugging with standardized logging
Quarter: FY23Q4, FY24Q1
Upstream Changes Summary:

DRIVERS-1677:
I suggest that drivers do their implementation of this ticket in tandem with their implementation of DRIVERS-1673 which adds command log messages. This way the driver will have actual log messages to emit and test and can confirm that their logging implementation and test code works as expected.

The logging spec can be found here.

The unified test format changes can be found here. To summarize:

  • Client entities may now have a new observeLogMessages property specifying logging configuration for the client
  • Tests may now have a new expectLogMessages property specifying expected log messages to be produced during the test
  • Two new special matching operators $$matchAsRoot and $$matchAsDocument have been added to enable logging assertions.
     

 Description   

This ticket was split from DRIVERS-1677, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 11/Feb/23 ]

Author:

{'name': 'Preston Vasquez', 'email': '24281431+prestonvasquez@users.noreply.github.com', 'username': 'prestonvasquez'}

Message: GODRIVER-2570 update bsoncore value string to preserve timestamp type (#1150)
Branch: release/1.11
https://github.com/mongodb/mongo-go-driver/commit/4d68f59a0c94565ef0f08bbb5cd31ee66d42d32c

Comment by Githook User [ 31/Jan/23 ]

Author:

{'name': 'Preston Vasquez', 'email': '24281431+prestonvasquez@users.noreply.github.com', 'username': 'prestonvasquez'}

Message: GODRIVER-2570: Easier debugging with standardized logging (#1149)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/e541e16e38686b1571296cd649c2f3ca92d69070

Comment by Githook User [ 20/Dec/22 ]

Author:

{'name': 'Preston Vasquez', 'email': '24281431+prestonvasquez@users.noreply.github.com', 'username': 'prestonvasquez'}

Message: GODRIVER-2570 update bsoncore value string to preserve timestamp type (#1150)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/4e038d8b969b3632a9b00c7f48b5e8bdc1d586ae

Generated at Thu Feb 08 08:38:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.