Optional hierarchical logging