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

Replace use of boost::log to support logv2

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Server Security

      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.

            Assignee:
            backlog-server-security [DO NOT USE] Backlog - Security Team
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: