Daniel Gartmann
Daniel Gartmann

Reputation: 13008

How to extend ServiceStack's RequestLogsFeature in order to log every request?

How extend ServiceStack's RequestLogsFeature in order to save every single log (with ServiceStack's log manager)?

Upvotes: 0

Views: 432

Answers (1)

mythz
mythz

Reputation: 143339

You can get the Request Logs Feature to use your custom IRequestLogger by specifying it when registering the plugin, e.g:

Plugins.Add(new RequestLogsFeature { 
    RequestLogger = new MyCustomRequestLogger(),
});

If no Request Logger is specified it will use the InMemoryRollingRequestLogger by default.

Upvotes: 1

Related Questions