Adapts the EnterpriseLibrary 6.0 logging system to Common.Logging.
The following configuration property values may be configured: DefaultPriority (see DefaultPriority) ExceptionFormat (see ExceptionFormat)
Inheritance: Common.Logging.Factory.AbstractCachingLoggerFactoryAdapter
 public void InitWithProperties()
 {
     NameValueCollection props = new NameValueCollection();
     props["exceptionFormat"] = "$(exception.message)";
     props["priority"] = "10";
      EntLibLoggerFactoryAdapter a = new EntLibLoggerFactoryAdapter(props);
     Assert.AreEqual("$(exception.message)", a.ExceptionFormat);
     Assert.AreEqual(10, a.DefaultPriority);
 }
        public void InitDefaults()
        {
            EntLibLoggerFactoryAdapter a = new EntLibLoggerFactoryAdapter();
            Assert.AreEqual(EntLibLoggerSettings.DEFAULTEXCEPTIONFORMAT, a.ExceptionFormat);
            Assert.AreEqual(EntLibLoggerSettings.DEFAULTPRIORITY, a.DefaultPriority);

            a = new EntLibLoggerFactoryAdapter(null);
            Assert.AreEqual(EntLibLoggerSettings.DEFAULTEXCEPTIONFORMAT, a.ExceptionFormat);
            Assert.AreEqual(EntLibLoggerSettings.DEFAULTPRIORITY, a.DefaultPriority);
        }
        public void InitWithProperties()
        {
            NameValueCollection props = new NameValueCollection();

            props["exceptionFormat"] = "$(exception.message)";
            props["priority"]        = "10";
            EntLibLoggerFactoryAdapter a = new EntLibLoggerFactoryAdapter(props);

            Assert.AreEqual("$(exception.message)", a.ExceptionFormat);
            Assert.AreEqual(10, a.DefaultPriority);
        }
        public void InitDefaults()
        {
            EntLibLoggerFactoryAdapter a = new EntLibLoggerFactoryAdapter();

            Assert.AreEqual(EntLibLoggerSettings.DEFAULTEXCEPTIONFORMAT, a.ExceptionFormat);
            Assert.AreEqual(EntLibLoggerSettings.DEFAULTPRIORITY, a.DefaultPriority);

            a = new EntLibLoggerFactoryAdapter(null);
            Assert.AreEqual(EntLibLoggerSettings.DEFAULTEXCEPTIONFORMAT, a.ExceptionFormat);
            Assert.AreEqual(EntLibLoggerSettings.DEFAULTPRIORITY, a.DefaultPriority);
        }