Uploaded image for project: 'Couchbase Elasticsearch Connector'
  1. Couchbase Elasticsearch Connector
  2. CBES-267

Include date and time zone in log message timestamp

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 4.4.2
    • None
    • None
    • 1
    • SDK41

    Description

      Modify the log4j2.xml so the pattern includes the date.

      For easy cross-referencing with logs from other Couchbase services, use ISO 8091 format with time zone offset specified as HH:MM.

      For example:

      2022-10-03T15:46:35,496-07:00 

      It would be idea if we could use a period instead of a comma to indicate fractional seconds (like other Couchbase logs), but log4j2 doesn't have an easy way to do that when including the offset, and it doesn't seem like a huge deal.

       

      Attachments

        For Gerrit Dashboard: CBES-267
        # Subject Branch Project Status CR V

        Activity

          People

            david.nault David Nault
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty