Move log_to_nodes into rt module for general use.