Create flag to set component log verbosity in C++ unit tests

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When running `mongod`, there are multiple ways of specifying the desired logging verbosity for a component - as a command line parameter, in configuration yaml files, or in a `mongo/mongosh` CLI.  In a C++ unit test, however, there does not seem to be a way to specify the log verbosity for individual components, despite the fact that these unit tests are calling server code that uses `LOGV2` logging macros with specific components.  It would be helpful if there were a way to configure this when running server unit test targets, such as via an argument passed to the test runner with Bazel's `–test_arg` parameter.

            Assignee:
            Unassigned
            Reporter:
            Alex Sarkesian
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: