Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
Jun 13, 2018
Jun 21, 2018
CMS Core
Closed, Fixed and tested
Unhandled exceptions thrown by the application are no longer logged by log4net in the latest version of EPiServer.Logging.Log4Net 2.2.2
Steps to reproduce
LogManager.GetLogger(typeof(StartPageController)).Error("This is logged"); |
throw new Exception("This is not logged"); |
Expected:
Error and unhandled exception are logged in the log file.
Actual:
Only the error message "This is logged" is logged in log file, not the unhandled exception.
According to customer this works as expected in EPiServer.CMS 9.12.2 together with EPiServer.Logging.Log4Net 2.0.0, but fails in EPiServer.CMS 11.3.4 together with EPiServer.Logging.Log4Net 2.2.2.