set logging rule and root path.