Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-59192

Command level log verbosity configuration

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Investigating
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Diagnostics
    • Labels:
      None
    • Sprint:
      Security 2021-08-23

      Description

      Debugging commands occasionally requires increased verbosity, however increasing this at the node level can generate a lot of noise. This feature would allow any command to accept an optional logLevel parameter, similar to how comments were added to all commands via SERVER-29794.

      Changing the log level can only be done via the logComponentVerbosity or logLevel server parameters, which are unavailable in managed environments (ex: MongoDB Atlas).

      For example:

      db.runCommand({
          find: "foo",
          filter: { bar: { $exists: true } },
          logLevel: {
            verbosity: <int>,
            <component1>: { verbosity: <int> },
            <component2>: {
              verbosity: <int>,
              <component3>: { verbosity: <int> }
            },
            ...
          }
          batchSize: 1000
      });
      

        Attachments

          Activity

            People

            Assignee:
            salman.baset Salman Baset
            Reporter:
            alex.bevilacqua Alex Bevilacqua
            Participants:
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated: