Versions Compared

Key

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

Reference for the logging standardization effort: Jakarta Best Practice Proposal for Standardized Logging Fields - v2

This requirement outlines that we can use JSON, CSV, or any other delimited format as long as the field names are present.

JSON Output

For DCAE components using log4j as the logger, update the log4j.xml file CONSOLE appender layout accordingly:

...

Once the XML files are updated, you should be able to rebuild the application and see the logs reflected in STDOUT. 


A POC with The VES Collector changes to accomplish this goal can be found here: https://gerrit.onap.org/r/c/dcaegen2/collectors/ves/+/132585

...

List of Application Status with log4j:

Done:

Medium Level level of Efforteffort*:

  • Rest-conf


*- will take longer (and more troubleshooting) than basic changes to the XML files to complete the ask.