Extended traversal core to allow custom labeling of the log output immediately before the traversal starts.