I have an Enterprise Library configuration XML serialised and loaded into a String object.
Is there any way to initialise an Enterprise Library logging component with that string?
I am looking for something like this:
IConfigurationSource configSource = new SomethingConfigurationSource(stringWhichHasConfig);
LogWriterFactory logFactory = new LogWriterFactory(configSource);
LogWriter writer = logFactory.Create();
Is there any way to actually do this?
My workaround was to write the configuration into a temporary file, and load that configuration as follows: