Fixes up all logging. Configures serilog logging to replace MS logging just like serilog does, adds new ILoggerConfiguration so we aren't hard coding things, dynamically adds enrichers when the container is ready to resolve services.
This commit is contained in:
@@ -54,6 +54,7 @@ namespace Umbraco.Web.UI.BackOffice
|
||||
});
|
||||
|
||||
//Finally initialize Current
|
||||
// TODO: This should be moved to the UmbracoServiceProviderFactory when the container is cross-wired and then don't use the overload above to `out var factory`
|
||||
Current.Initialize(
|
||||
factory.GetInstance<ILogger> (),
|
||||
factory.GetInstance<Configs>(),
|
||||
@@ -76,6 +77,7 @@ namespace Umbraco.Web.UI.BackOffice
|
||||
app.UseDeveloperExceptionPage();
|
||||
}
|
||||
app.UseUmbracoCore();
|
||||
app.UseUmbracoRequestLogging();
|
||||
app.UseUmbracoWebsite();
|
||||
app.UseUmbracoBackOffice();
|
||||
app.UseRouting();
|
||||
|
||||
Reference in New Issue
Block a user