Thanks, we are now following a different approach. I have a new query mentioned below.
In the package log4net it is possible to control the level of logging at a class level
and it is possible to check at runtime if the current level of logging in the class (or category) has been enabled.
E.g. log4net has properties like IsDebugEnabled, IsInfoEnabled, and IsWarnEnabled which can be used to
suppress extraneous string creation and other preparatory work done for logging.
In EntLib we can use the IsLoggingEnabled() to check if the logging has been enabled. This check is performed
at the application level. Does the Entlib provide flags which can be configured to control the logging at the class level?
And can we setup a configuration for the different categories of logging, as in the case of log4net’s IsDebugEnabled, etc.
defaultWriter = EnterpriseLibraryContainer.Current.GetInstance<LogWriter>();
name="LogEnabled Filter" />