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

make a logging optional<T> type that optionally logs attributes

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Logging
    • None
    • Server Security

    Description

      Create a new type under the logv2 namespace, like logv2::optionalAttribute<T> that is effectly just boost::optional<T>, except when logging that type, if it is disengaged, then remove the whole attribute from output.

      Attachments

        Activity

          People

            backlog-server-security Backlog - Security Team
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: