...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
//TODOfinal Logger logger = LoggerFactory.getLogger(this.getClass()); final Marker entry = MarkerFactory.getDetachedMarker("ENTRY"); logger.debug(entry, "Entering."); |
Marker - EXIT
This should be reported as late in invocation as possible, immediately before unsetting the RequestID and InvocationID MDCs.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
//TODOfinal Logger logger = LoggerFactory.getLogger(this.getClass()); final Marker entry = MarkerFactory.getDetachedMarker("EXIT"); logger.debug(entry, "Exiting."); |
Marker - INVOKE
This should be reported by the caller of another ONAP component via REST, including a newly allocated InvocationID, which will be passed to the caller.
...
ONAP needs to strike a balance between human-readable and machine-readable logs. This means:
- The use of pipe tab (|\t) as a delimiter.
- Escaping all messages, exceptions, MDC values, Markers, etc. to replace pipe (|) in tabs in their content.
- Escaping all newlines with \n so that each entry is on one line.
...