You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Debug: split log method into request and response logs #117
@jtopjian I propose the following interface for the debug client:
// Logger is an interface representing the Logger structtypeLoggerinterface {
RequestPrintf(formatstring, args...interface{})
ResponsePrintf(formatstring, args...interface{})
}
I haven't come across an interface like this in other projects - my concern is that someone will need to implement a unique interface just to see the request/response information.
Activity
jtopjian commentedon Mar 31, 2020
What benefits would this provide?
kayrus commentedon Mar 31, 2020
You can use different log prefixes for a visual segregation of the request and response.
jtopjian commentedon Mar 31, 2020
I haven't come across an interface like this in other projects - my concern is that someone will need to implement a unique interface just to see the request/response information.