finish logger unit and fix some config unit bugs.