You can, but it's not worth it. Basically, you need to write code that fills in the LoggingSettings object, and all the corresponding objects contained therein, and hope you got all the names lined up right. It's huge, it's fragile, and it's pretty much
impossible to get right. If you really want an example, look through out unit tests for things setting up a DictionaryConfigurationSource.

We're going to be improving this vastly in Entlib 5; look for our new programmatic config interface in our next drop.