Adds mongodb logging to semantic training.