1.1 to 4.0 Migration - Microsoft.Practices.EnterpriseLibrary.Logging.Configuration members not getting.

Topics: Logging Application Block
Jun 13, 2012 at 5:03 AM

While migrating asp.net web application from 1.1 to 4.0 we came across following Enterprise Library 1.1 members which are absolute so required replacement in .Net version 4.0.

Namespace: Microsoft.Practices.EnterpriseLibrary.Logging.Configuration
Class name: LoggingSettings
Members : LoggingEnabled MinimumPriority

Class Name : ConfigurationManager
Members : GetCurrentContext ConfigurationChanged

We are also not getting replacement for belwo mentioned classes in Enterprsie Library version above 1.1.

Class Name : LoggingConfigurationView (Enterprise Library 1.1 Namespace - Microsoft.Practices.EnterpriseLibrary.Logging)
ConfigurationContext (Enterprise Library 1.1 Namespace Microsoft.Practices.EnterpriseLibrary.Configuration)

Request you to please suggest replacement or alternative in .Net version 4.0.

Jun 30, 2012 at 5:47 AM

LoggingConfigurationView is used to get at the configuration information.   In more recent versions of Enterprise Library you can get at this information using the LoggingSettings.  This thread should help but specific changes depend on what exactly the application is doing.

Randy Levy
Enterprise Library support engineer