break base parser out and add a test for log_level