Log4net doesn\'t log when it is used inside a VSIX extension and installed at another target VS.
I have a WPF solution. I downloaded log4net dll, I added log4net.config
After analyzation the problem was that log4net did not log when used inside a visual studio extension.
The solution was described in this so post
As written by Gifty in the comment:
Thank you. XmlConfigurator.Configure(new System.IO.FileInfo("log4net.config"));
This line was taking my local solution path for log4net instead of the extension installed path so I changed that line to var log4netconfigpath = Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName + @"\log4net.config";
and changed the log4net.config file properties BuildAction-Content and Include in VSIX-true now its working as expected. Thank you dsdel for redirecting me to that post :)