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

Replace use of boost::log to support logv2

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The boost::log library was initially selected as a backend for the logv2 implementation because the early design for that project included the ability to log as either text or JSON, and the pluggable formatter support in boost::log was appealing, Subsequent design changes dropped that requirement, and we only log in JSON now, so we aren't actually using the pluggable formatter support.

      This wouldn't matter at all, except that we had to make local changes to boost::log in order for it to work correctly for us, see SERVER-46008.

      These local boost changes represent an ongoing maintenance burden when we need to upgrade boost, in tickets like SERVER-44079. Furthermore, it means that users who build the product from source and use the --use-system-boost option (and people actually do this) will get a logging system with different behavior.

      Since we no longer need the full functionality of boost::log to implement our logging support, we should replace our usage of it with something else.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-security Backlog - Security Team
            Reporter:
            acm Andrew Morrow
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: