Uploaded image for project: 'RAML Module Builder'
  1. RAML Module Builder
  2. RMB-670

Fix RestVerticle requestId logging, replace log4j 1.2 MDC by log4j 2 ThreadContext

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      CP: sprint 92
    • Story Points:
      0.5
    • Development Team:
      Core: Platform
    • Release:
      Q2 2020

      Description

      log4j 1.2 and its MDC does not work in Java >= 9: https://blogs.apache.org/logging/entry/moving_on_to_log4j_2
      Therefore we drop 1.2 and use 2.0.

      We fix the broken requestId logging in RestVerticle by using the pattern

      %d{dd MMM yyyy HH:mm:ss:SSS} %-5p %C{1} [%X{reqId}] %m%n
      

      resulting in [reqId=981376281] if reqId is defined or [] otherwise.

      This solution allows logging with requestId for Goldenrod using Vert.x 3.9.
      For Honeysuckle we will revert it, update to Vert.x 4 and use vertx context local values and JSON log lines, see RMB-669 for details.

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                julianladisch Julian Ladisch
                Reporter:
                julianladisch Julian Ladisch
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases