Could someone guide me trough example or an URL to achieve my need.
Project description :
- 3 DLL (classe library) (C# 2.0)
- windows application (C# 2.0)
Need :
Use only one log4net configuration to log events/Erros/ … (either i’am in DLL or in windows application)
N.B = it’ll be useful for me if the 3 external dll can read configuration from windows application app.config file.
Thanks
generally speaking, every class library called from the ‘windows application’ uses configuration files deployed by windows application project. Thanks to that, current configuration depends on the starting project (could be wf, wpf, web…).
just remember to set the additional config files to be deployed with the application
This behavior is quite easy to understand if you look into the deployed application directory. It contains all the projects’ as dlls and all the other files configured to be copied to the final folder. By default each project has the same access to these files as they are all in the same location. If they for example look for “log4net.xml” they will find the same file.