Uploaded image for project: 'Nuxeo Java Client'
  1. Nuxeo Java Client
  2. JAVACLIENT-29

Using Log4J 2 while using Nuxeo test framework

    XMLWordPrintable

    Details

    • Type: User story
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: API

      Description

      In nuxeo-java-client as a dev, I would like to execute tests with the Nuxeo framework and in the same time, be able to use Log4J 2 framework configuration file. For now its not possible.

      See example of test

      See deprecated log4J configuration file

      See following new configuration log4J 2:

      <?xml version="1.0"?>
      <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
      <Configuration>
        <Appenders>
      
          <Console name="STDOUT" target="SYSTEM_OUT">
            <PatternLayout pattern="%d{HH:mm:ss,SSS} %-5p [%C{1}] %m%n"/>
          </Console>
      
          <File name="FILE" fileName="target/trace.log" append="false">
            <PatternLayout pattern="%d{HH:mm:ss,SSS} %-5p [%C{1}] %m%n"/>
          </File>
      
        </Appenders>
      
        <Root level="debug">
          <AppenderRef ref="CONSOLE"/>
          <AppenderRef ref="FILE"/>
        </Root>
      
      </Configuration>
      
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: