Merging file-based config data with a config created by Fluent API

Topics: Logging Application Block
Feb 21, 2011 at 1:04 PM

I have two custom trace listeners. One of them will be using EntLib config from config file, and the other will have dynamic configuration data created by using Fluent API.

If I create dynamic configuration with Fluent API; however, I am loosing/replacing the static configuration. The different parts of my app will be creating both trace listeners, possibly, at the same time. Therefore, it's crucial that the both configuration data be available separately to each listeners.

How can I overcome this problem?

 

Thanks in advance,

M. Inam

Feb 22, 2011 at 12:17 AM

Hi M. Inam,

Merging of existing application config with the created config using fluent API will not work as what you have also observed. Though. please see if the resolution on this related thread would help you address your problem. HTH.

Gino Terrado
Global Technologies and Solutions
Avanade, Inc.
entlib.support@avanade.com