Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-25096

Should be able to configure logs in Json

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.10, 8.10, 9.10, 10.1
    • Fix Version/s: 10.2
    • Component/s: Configuration
    • Release Notes Description:
      Hide

      JSON output for Log4J

      – Required dependencies have been added so that it is possible to configure the logs to be serialized as valid JSON.

      Show
      JSON output for Log4J – Required dependencies have been added so that it is possible to configure the logs to be serialized as valid JSON.

      Description

      As Nuxeo is more and more deployed in containerized environment or make use of tools like Datadog or ELK, we should add the libraries to be able to output our logs in JSON:

      https://github.com/logstash/log4j-jsonevent-layout

      needed libs are

      <dependency>
          <groupId>net.minidev</groupId>
          <artifactId>json-smart</artifactId>
          <version>1.1.1</version>
      </dependency>
      <dependency>
          <groupId>net.logstash.log4j</groupId>
          <artifactId>jsonevent-layout</artifactId>
          <version>1.7</version>
      </dependency>
      

        Attachments

        1. log4j.xml
          14 kB
          Damien Metzler

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: