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

Include thread id in log messages

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.4
    • Affects Version/s: None
    • Component/s: Logging
    • None
    • Fully Compatible

      When debugging and diagnosing issues it is very helpful for the thread id to be included with each log message.

      Adding a switch or having this behavior in some special mode may be sufficient for mongodb developers, but I can also see this being useful for diagnosing end-user problems as well.

      This can be tested by add a line to "MessageEventDetailsEncoder::encode":

      os << std::this_thread::get_id();
      

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: