A simple decorator for outputting api log info. to the terminal.