2

I want to log all ServiceStack requests, to include:

  • Request DTO
  • Response
  • Date
  • Time
  • Url
  • IP
  • Execution Time

How can I do this?

Scott
  • 20,853
  • 8
  • 63
  • 72
Jasonyi
  • 471
  • 1
  • 4
  • 10
  • 1
    possible duplicate of [how do I log requests and responses for debugging in servicestack](http://stackoverflow.com/questions/11605935/how-do-i-log-requests-and-responses-for-debugging-in-servicestack) –  Jun 14 '15 at 17:16

1 Answers1

1

I recommend looking at ServiceStack's Request Logger Plugin which already does a lot of this.

mythz
  • 138,929
  • 27
  • 237
  • 382
  • i was defined `CustomLogger` implement `IRequestLogger`, in `Log(IRequest request,object requestDto,object response,TimeSpan elapsed)` method,i can logging some requestlog. but,is ServiecStack's HttpResonse StatusCode is not `200`, the `Log` method is not work. how to log `ValidatorError` or `httperror`? – Jasonyi Feb 26 '14 at 04:49