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

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

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

      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.

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

              Created:
              Updated: