parser: use logging infrastructure