- .gitignore: +Logs
- Program.cs: Telemetry configuration - Startup.cs: Request logging middleware
This commit is contained in:
+9
-1
@@ -130,7 +130,8 @@ namespace xApi
|
||||
)
|
||||
{
|
||||
//
|
||||
if (env.IsDevelopment())
|
||||
var isDevelopmentEnvironment = env.IsDevelopment();
|
||||
if (isDevelopmentEnvironment)
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
}
|
||||
@@ -153,6 +154,13 @@ namespace xApi
|
||||
//
|
||||
app.UseRouting();
|
||||
|
||||
//
|
||||
// Using Request Logging ...
|
||||
if (!isDevelopmentEnvironment)
|
||||
{
|
||||
app.UseXRequestLogger();
|
||||
}
|
||||
|
||||
//
|
||||
// Enable Api Key Usage Logs ...
|
||||
// app.UseXApiKeyUsage();
|
||||
|
||||
Reference in New Issue
Block a user