App.config memory

Topics: Logging Application Block
Nov 22, 2011 at 1:31 PM


Is it possible to get the logging block to read its configuration from memory, not the app.config

Many thanks


Nov 22, 2011 at 11:20 PM

Enterprise Library 5 has added the ability to easily configure the blocks (including Logging) via a Fluent interface.  See Using the Fluent Configuration API for an example.

Prior to Version 5 programmatic configuration was possible but in a much less elegant and integrated manner.  David Hayden and Alois Kraus both wrote excellent articles describing the older approach.

Randy Levy
Enterprise Library support engineer