Skip to content

Commit d1011c7

Browse files
committed
Move Request Logs to requestlogs Configure.RequestLogs.cs
1 parent bd9b4c1 commit d1011c7

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

features/profiling/Configure.Profiling.cs

-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ public void Configure(IWebHostBuilder builder) => builder
1010
.ConfigureServices((context, services) => {
1111
if (context.HostingEnvironment.IsDevelopment())
1212
{
13-
services.AddPlugin(new RequestLogsFeature
14-
{
15-
EnableResponseTracking = true,
16-
});
17-
1813
services.AddPlugin(new ProfilingFeature
1914
{
2015
IncludeStackTrace = true,

features/requestlogs/.publish

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gist https://gist.github.com/gistlyn/c8441f82377cfed3a35006a51b33020d
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using ServiceStack;
2+
3+
[assembly: HostingStartup(typeof(MyApp.ConfigureRequestLogs))]
4+
5+
namespace MyApp;
6+
7+
public class ConfigureRequestLogs : IHostingStartup
8+
{
9+
public void Configure(IWebHostBuilder builder) => builder
10+
.ConfigureServices((context, services) => {
11+
if (context.HostingEnvironment.IsDevelopment())
12+
{
13+
services.AddPlugin(new RequestLogsFeature
14+
{
15+
EnableResponseTracking = true,
16+
});
17+
}
18+
});
19+
}

0 commit comments

Comments
 (0)