Add support to log requests and responses