log arguments
log exception and return value