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

Use existing logging framework to standardize logging in tools

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Gone away
    • None
    • None
    • Logging, Tools
    • None

    Description

      The current requirements for logging of tools are:

      1. Suppress certain log message (--quiet)
      2. Change whether certain messages are going to stdout or stderr to avoid smashing output going to stdout.
      3. Multiple different log streams (for fatal errors or just informational messages)
      4. Log levels (-vvvv)
      5. Redirect log output to file

      The only things supported by the current server logging framework are 4 and 5.

      The logging framework for the server is currently used in some places in the tools, but only inconsistently since it is not adequate for all cases.

      Also note that the tools are tightly integrated with the server, which means that code in the tools can call into server code that uses the existing logging framework. This is a problem because in some cases the tools want to send log messages only to stderr, which isn't supported right now by the existing logging framework used by the server.

      Attachments

        Issue Links

          Activity

            People

              mikeo@mongodb.com Michael O'Brien
              sverch Shaun Verch
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: