You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I have some issues with the way to build the configuration file path in the current implementation :
the GetConfigFileFullPath method use the location of the apache.log4net.Extensions.Logging.dll file as default Directory. But the file is located in the central nuget repository by default.
The assumption is that you are providing your own log4net.config file. The library has no way of knowing how you want log4net configured for your application. You would add the log4net.config file to your project and set it to copy to the output directory. This would cause the config file to be located in the same directory and the apache.log4net.Extensions.Logging.dll (which is why we look for it there)
I have had the same issue as vdaron.
Providing my own log4net config doesn't work since it looks for the log4net config in the nuget cache folder, not where my config file is located - The output directory.
I agree with his suggestion of using the current directory as the default, but maybe if you're hesitant, would you be willing to allow a parameter to override the directory to look for the log4net.config?
Hi
I have some issues with the way to build the configuration file path in the current implementation :
the GetConfigFileFullPath method use the location of the apache.log4net.Extensions.Logging.dll file as default Directory. But the file is located in the central nuget repository by default.
Why don't use the Directory.GetCurrentDirectory method instead ?
Thanks for help
The text was updated successfully, but these errors were encountered: