Browse Source

Environment

pull/65/head
Sebastian Stehle 9 years ago
parent
commit
6fb2f5ac3c
  1. 12
      src/Squidex/Startup.cs

12
src/Squidex/Startup.cs

@ -112,6 +112,18 @@ namespace Squidex
MapAndUseFrontend(app); MapAndUseFrontend(app);
app.UseMyEventStore(); app.UseMyEventStore();
var log = app.ApplicationServices.GetRequiredService<ISemanticLog>();
log.LogInformation(w => w
.WriteProperty("message", "Application started")
.WriteObject("environment", c =>
{
foreach (var kvp in Configuration.AsEnumerable().Where(kvp => kvp.Value != null))
{
c.WriteProperty(kvp.Key, kvp.Value);
}
}));
} }
private void MapAndUseIdentity(IApplicationBuilder app) private void MapAndUseIdentity(IApplicationBuilder app)

Loading…
Cancel
Save