DXC-S and custom logger factory

Dejan Caric
Member since: 2010
 

Did anyone manage to override episerver:LoggerFactoryType in DXC-S?

I've registered a custom logger factory in the appSetting section of web.config and web.preproduction.config, but when I inspect ConfigurationManager.AppSettings in DXC-S, I still see EPiServer.Logging.TraceLoggerFactory, EPiServer.Framework.

#196395 Aug 29, 2018 12:59
  • Dejan Caric
    Member since: 2010
     

    Managed Services needs to remove that setting from Azure Portal

    #196396 Aug 29, 2018 13:26
  • Magnus Rahl
    Member since: 2008
     

    IIRC DXC-S will forcibly change the configuration to use trace logging to make logs available to epi for troubleshooting etc.

    #196397 Aug 29, 2018 13:27
  • Dejan Caric
    Member since: 2010
     

    We've created a custom logger that writes to both Diagnostics Trace and Application Insights. But we couldn't register a custom logger factory because, as you said, Managed Services have added that Application Setting in Azure Portal.
    So we created a support ticket to have it removed from all three environments, and it works fine now :)

    #196398 Aug 29, 2018 13:40