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

Command level log verbosity configuration

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

      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
      });
      

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

              Created:
              Updated: