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

Create a log4j test configuration

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2023.14
    • Component/s: Tests
    • Release Notes Summary:
      Nuxeo tests now runs with a common log configuration
    • Release Notes Description:
      Hide

      Nuxeo tests now run with a common Log4j2 configuration, which allows to not set-up a log4j2-test.xml in each test modules.

      This common configuration can be overridden by a log4j2-test.xml file if needed.
      The override is done by merging with the common configuration, which allows you to have a small configuration file for your customisations.

      Last but not least, the Nuxeo common log4j test configuration set-up colors for your test logs.

      Show
      Nuxeo tests now run with a common Log4j2 configuration, which allows to not set-up a log4j2-test.xml in each test modules. This common configuration can be overridden by a log4j2-test.xml file if needed. The override is done by merging with the common configuration, which allows you to have a small configuration file for your customisations. Last but not least, the Nuxeo common log4j test configuration set-up colors for your test logs.
    • Tags:
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #115, nxplatform #116
    • Story Points:
      5

      Description

      We want to create a common log4j test configuration for all of our tests.

      This configuration could be a log4j2-test-common.xml file. It will be loaded by a custom log4j configuration java class, as it, tests will still be able to declare their log4j2-test.xml file to override (by merge) the common configuration.

      This will allow us to :

      • remove a lot of log4j2-test.xml file.
      • have a configuration for feature loggers (such as CoreFeature which logs the deployed repository)

      Final goal is to have test start/finish logs, feature logs and all nuxeo loggers info logs in target/trace.log.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: