-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 5.0.0
-
Component/s: None
Description
The new logger class is responsible for a number of environment variables and requires a fair amount of setup before implementing logging. The SeverityLevel enum and environment options described below can be found here.
Acceptance Criteria
- Implement the SeverityLevel enum
- Add method placeholder for each of the severity loggers
- Handle parsing the environment options
- Handle client option parsing and logger instantiation.
- Logger has a hardcoded list of the BSON documents data types that should be converted to EJSON
Testing
Aside from testing the acceptance criteria listed above, test that:
- the MongoClient:
- will have a valid logger prop if logging is enabled through the environment variables
- the logger:
- can set the severity level on a per-component bases
- treats invalid values of the SeverityLevel enum as not set
- noops when it's disabled
- has to be done before
-
NODE-4849 Add Typescript support for mongodbLogPath in client options
- Closed