Try our conversational search powered by Generative AI!

Log4Net logging stops working in Release mode

Found in

EPiServer.Logging.Log4Net 2.2.1

Fixed in

EPiServer.Logging.Log4Net 2.2.2

(Or a related package)

Created

Feb 19, 2018

Updated

Oct 19, 2018

Area

CMS Core

State

Closed, Fixed and tested


Description

All log4net logging stops working when running in release mode. Only affects EPiServer.Logging.Log4Net v2.2.1

Workaround
Add the following AppSettings to the web.config.

<appSettings>
    <add key="log4net.Config" value="EPiServerLog.config"/>
    <add key="log4net.Config.Watch" value="True"/>
</appSettings>

Reported through
https://swapcode.wordpress.com/2018/02/16/no-logs-after-upgrading-episerver-logging/