AckeeCZ / Reqres

Simple network activity logger for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Move string formatting out of ReqRes class

ackdom opened this issue · comments

Because of work on ios logging to ElasticSearch I would like to use ReqRes feature to "listen"on Requests and Responses.

I would like to separate "output format" and "logger for output format" out of the ReqRes. I know it brings up some level of additional complexity. But if written correctly it wont affect the original simplicity and intentions of use.

first idea out of the Box is to have Generic Formatter which conforms to logResponse, logRequest/ Error interface... and this formatter has output of T

Formatters will have Logger which accepts T as input and do whatever it wants with it.

if you agree i can start working on it and create pull request.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.