JSON Output
For DCAE components using log4j as the logger, update the log4j.xml file CONSOLE appender layout accordingly:
...
A POC with VES Collector can be found here: https://gerrit.onap.org/r/c/dcaegen2/collectors/ves/+/132585
String Output
Log4j has the capability of providing these fields in the normal output of just a string too. Here is some documentation on the tags that are available out of the box with log4j: https://logging.apache.org/log4j/2.x/manual/lookups.html https://www.tutorialspoint.com/log4j/log4j_patternlayout.htm