Use logging enum instead of hardcoded level