Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4810

Define the new Logger class

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.13.0
    • Affects Version/s: 5.0.0
    • Component/s: None
    • Not Needed

      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

            Assignee:
            bailey.pearson@mongodb.com Bailey Pearson
            Reporter:
            andy.mina@mongodb.com Andy Mina
            Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: