Reputation: 13008
How extend ServiceStack's RequestLogsFeature in order to save every single log (with ServiceStack's log manager)?
Upvotes: 0
Views: 432
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