I've noticed that for a while back my logging has stopped working. Looking at the internal debugging info of Log4net and comparing it to a project that is working, it doesn't seem to find EPiServer.Logging.Log4Net?
Log4net internal debugging
log4net: log4net assembly [log4net, Version=184.108.40.206, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a]. Loaded from [C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\44134a67\53c02a36\assembly\dl3\fcf19adf\0080f5a6_b964d201\log4net.dll]. (.NET Runtime [4.0.30319.42000] on Microsoft Windows NT 10.0.15063.0)
log4net: defaultRepositoryType [log4net.Repository.Hierarchy.Hierarchy]
log4net: Creating repository for assembly [MyAssembly, Version=220.127.116.11, Culture=neutral, PublicKeyToken=null]
log4net: Assembly [MyAssembly, Version=18.104.22.168, Culture=neutral, PublicKeyToken=null] Loaded From [C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\44134a67\53c02a36\assembly\dl3\66e7cec6\d4190289_7f75d301\MyAssembly.dll]
log4net: Assembly [MyAssembly, Version=22.214.171.124, Culture=neutral, PublicKeyToken=null] does not have a RepositoryAttribute specified.
log4net: Assembly [MyAssembly, Version=126.96.36.199, Culture=neutral, PublicKeyToken=null] using repository [log4net-default-repository] and repository type [log4net.Repository.Hierarchy.Hierarchy]
log4net: Creating repository [log4net-default-repository] using type [log4net.Repository.Hierarchy.Hierarchy]
Not sure if this be helpful, but are you by any chance creatinging a class level static variable to use log4net in Global.ascx?
Yeah, I saw that as a possible issue when googling around too. Unfortunatly nothing fishy is going on in my Global.asax.
Have tried to reinstall the Episerver.Logging.Log4Net nuget package?
I upgraded my solution to the to latest one and the logging started to work. So I'll leave it like that. Thanks!