Added command, tree and file tree logging.