I am already working on a .net project, but I think this question can be applied to any programming language / structure.
The question is what are some good practices for reading configurations for a class library. I can think of the following options:
Any ideas / preferences?
Surprisingly (or unsurprisingly?) It depends.
API, , , . , , , , .
, , , . , , .
, , : log4net.
, , :
. , - .net, web.config
, , (nhibernate, log4net, spring.net .. .. ..). , , :
<log4net configSource="Config\log4net.config.xml" />
, , .
"" , . , nhibernate-, "" ( ).
, .