Can you provide more details on what purposes or what specific scenario are you trying to achieve on this? Also, is what you meant by creating a flat file listener for each instance of your class is to be able to dynamically create the listener or setting
up your logging configuration during runtime, right? If yes, try looking into utilizing the
Fluent Configuration API which will provide you to be able to programmatically manipulate your Logging App Block configuration. HTH.
Global Technologies and Solutions
I would like to configure logging settings in app.config file. At run-time when new instance of some of my classes is created it should be logged in separate file (with name based on for example some object id). Many objects of my class can be instanciated
during execution. Each of them should write logging messages in separate file. It would be great if all parameters of listening and formatting keep being in app.config.. So when new object is created parameters of some listener and formatter should be
copied from app.config to new instance of logger and formatter created at run-time.
Does Fluent Configuration API meet my needs?
How can I access from code app.config based configuration of logging app block?