I am having problems with how I can use logging in my setup / install project.
I have Log4net running for installed applications, but I cannot register the installation and uninstallation process.
My main problem is with the log configuration file. I suppose this is a little chicken / egg scenario - I was not able to capture the newly installed log file?
I have a method that finds the root directory of my application using - AppDomain.CurrentDomain.SetupInformation.ApplicationBase and I usually use this to find the logging configuration file. However, this directory during installation is not located where it is installed (obviously), it is located somewhere in the Windows file system.
Does anyone have any ideas?
source
share