gogearbox/gearbox

Add logger middleware

abahmed opened this issue · 1 comments

After supporting middlewares in #9

Let's start writing common middlewares that will be useful for users

Logger Middleware should have these metrics:

  • User can specify the writer (io, or file, etc.)
  • User can select output is colored or not
  • Log message should contain (at least)
    • method
    • path
    • remote address
    • timestamp
    • protocol
    • body
  • all message elements are optional and selectable for user
stale commented

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.