Show TOC

Background documentationHierarchical Destination Inheritance Locate this document in the navigation structure

 

The naming hierarchy enables destination assignment.

Syntax Syntax

  1. static final Location parent = Location.getLocation("com.sapmarkets"),
    Location child = Location.getLocation("com.sapmarkets.foo");
    parent.fatalT("A fatal message from parent");
    child.fatalT("A fatal message from children");
End of the code.

Both messages will be output to the console, even though ConsoleLog is assigned only to the parent node.

Additivity

Multiple destinations are permitted. The assignment of logs to a source object is additive. There is no race condition.

There are two messages printed in the console (from parent and child). While, in the output file, messages from child are also printed in addition to the console destination.

More Information

Output File