Skip to content

Debug: split log method into request and response logs #117

Description

@kayrus

@jtopjian I propose the following interface for the debug client:

// Logger is an interface representing the Logger struct
type Logger interface {
        RequestPrintf(format string, args ...interface{})
        ResponsePrintf(format string, args ...interface{})
}

Do you have objections?

Activity

  1. jtopjian commented on Mar 31, 2020

    @jtopjian
    Contributor

    What benefits would this provide?

  2. kayrus commented on Mar 31, 2020

    @kayrus
    ContributorAuthor

    You can use different log prefixes for a visual segregation of the request and response.

  3. jtopjian commented on Mar 31, 2020

    @jtopjian
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions