FELIX-3180 Provide MessageFormat based logging method
  - adapt calls to the old log method benefitting from the new method
  - remove unneeded isLogEnabled calls
  - add some more debug logging

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1187346 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationImpl.java b/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationImpl.java
index 676c33a..1c48117 100644
--- a/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationImpl.java
+++ b/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationImpl.java
@@ -398,6 +398,9 @@
         {
             CaseInsensitiveDictionary newProperties = new CaseInsensitiveDictionary( properties );
 
+            getConfigurationManager().log( LogService.LOG_DEBUG, "Updating config {0} with {1}", new Object[]
+                { getPid(), newProperties } );
+
             setAutoProperties( newProperties, true );
 
             // persist new configuration
@@ -426,7 +429,8 @@
                     catch ( IOException ioe )
                     {
                         getConfigurationManager().log( LogService.LOG_ERROR,
-                            "Failure storing factory " + factoryPid + " with new configuration " + getPid(), ioe );
+                            "Failure storing factory {0} with new configuration {1}", new Object[]
+                                { factoryPid, getPid(), ioe } );
                     }
                 }
             }