A logger that logs in a tree structure and saves in mongo.