A filter which logs HTTP calls.
By default logs POST
and PUT
.
public IServiceProvider ConfigureServices(IServiceCollection services)
{
services
.AddMvcCore(options =>
{
...
options.Filters.Add(new LoggingFilterFactory());
...
})
...
}
public IServiceProvider ConfigureServices(IServiceCollection services)
{
services
.AddMvcCore(options =>
{
...
options.Filters.Add(new LoggingFilterFactory(new []{ "GET", "POST", "PUT", "DELETE" }));
...
})
...
}