Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Copy the configuration file to a location outside of the etc directory:

    Code Block
    cp /opt/snaplogic/etc/log4j2-jcc.xml.sample /opt/snaplogic/log4j2-jcc.xml
  2. To enable the custom logging configuration, add a configuration property in the global . properties file   (or in the .slpropz configuration file from the Snaplex properties file):

    Code Block
    jcc.jvm_options = -Dlog4j.configurationFile=/opt/snaplogic/log4j2-jcc.xml

  3. Apply the changes in the configuration file. For example, to disable logging for a Parquet library, add the following:

    Code Block
    <Logger name="org.apache.parquet" level="error" includeLocation="true" additivity="false">
      <AppenderRef ref="JCCMAINJSON"/>
      <AppenderRef ref="JCCERRORJSON"/>
    </Logger>

    You can make further logging configuration changes per your requirements.

     

  4. Apply these changes to all the nodes in the Snaplex, and restart the Java Component Container (JCC) processes. 

...