Allow logback file to be easily configured to output JSON logs

XMLWordPrintable

    • Type: Feature Request
    • Resolution: Fixed
    • Priority: L3 - Default
    • 3.10.0-alpha4, 3.10.0
    • Affects Version/s: None
    • Component/s: backend
    • None
    • 2
    • S

      Optimize doesn't currently have an easy way to allow the output of logs in JSON format. While the logback file can be overridden, common JSON appenders aren't included in the Optimize dependencies, so doing this can be problematic.

      We should instead aim to make this possible with minimal change. Our SRE team even want to use this already in the cloud. For more context, see https://camunda.slack.com/archives/C55U06YRG/p1643368861542019

      ATs:

      • Optimize can easily be configured to output JSON formatted logs
      • We document an example in our public documentation
      • SRE are informed after the change has been made so they/we can make the relevant changes for Optimize cloud logging

      Hints:

      Justification:

      This will make our cloud log debugging much easier

      HOW TO TEST:

      • Set the environment variable JSON_LOGGING=true
      • Run Optimize either in C7, or C8 mode
      • The logs you see now should be in JSON format

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Joshua Windels
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: