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

Remove timestamp log format inconsistencies in server code

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • N&O 2025-03-17, N&O 2025-03-31
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently mongo shell and server processes might log timestamps in two different formats:

      • kISO8601UTC, e.g.:
        {"t":{"$date":"2025-02-27T10:37:10.816Z"},"s":"I",  "c":"-",        "id":8991200, "ctx":"main","msg":"Shuffling initializers","attr":{"seed":2040222315}}
        
      • kISO8601Local, e.g.:
        {"t":{"$date":"2025-02-27T10:37:10.913+00:00"},"s":"W",  "c":"ACCESS",   "id":7539600, "svc":"-", "ctx":"main","msg":"featureFlagSecurityToken is enabled.  This flag MUST NOT be enabled in production"}
        

      It looks like the same process can generate log messages in these two formats and it would be more natural to have it more uniform.

            Assignee:
            david.goffredo@mongodb.com David Goffredo
            Reporter:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None