updated log configuration + added log config property in product file
diff --git a/eclipse-tools/model-transformation/examples/sample-model-transformation/app4m.example.transform.cust.app/CustTransformation.product b/eclipse-tools/model-transformation/examples/sample-model-transformation/app4m.example.transform.cust.app/CustTransformation.product
index 7668cbd..ae017cb 100644
--- a/eclipse-tools/model-transformation/examples/sample-model-transformation/app4m.example.transform.cust.app/CustTransformation.product
+++ b/eclipse-tools/model-transformation/examples/sample-model-transformation/app4m.example.transform.cust.app/CustTransformation.product
@@ -111,6 +111,7 @@
<plugin id="org.apache.felix.scr" autoStart="true" startLevel="2" />
<plugin id="org.eclipse.app4mc.transformation.application" autoStart="false" startLevel="5" />
<property name="log4j.configuration" value="headless_log4j.xml" />
+ <property name="app4mctransformation.log.level" value="debug" />
</configurations>
</product>
diff --git a/eclipse-tools/model-transformation/examples/sample-model-transformation/app4mc.example.transform.app/Transformation.product b/eclipse-tools/model-transformation/examples/sample-model-transformation/app4mc.example.transform.app/Transformation.product
index bf2a915..9a80c58 100644
--- a/eclipse-tools/model-transformation/examples/sample-model-transformation/app4mc.example.transform.app/Transformation.product
+++ b/eclipse-tools/model-transformation/examples/sample-model-transformation/app4mc.example.transform.app/Transformation.product
@@ -91,6 +91,7 @@
<plugin id="org.apache.felix.scr" autoStart="true" startLevel="2" />
<plugin id="org.eclipse.app4mc.transformation.application" autoStart="false" startLevel="5" />
<property name="log4j.configuration" value="headless_log4j.xml" />
+ <property name="app4mctransformation.log.level" value="debug" />
</configurations>
<preferencesInfo>
diff --git a/eclipse-tools/model-transformation/plugins/org.eclipse.app4mc.transformation.log4j.configuration/headless_log4j.xml b/eclipse-tools/model-transformation/plugins/org.eclipse.app4mc.transformation.log4j.configuration/headless_log4j.xml
index 0c36838..821dcb8 100644
--- a/eclipse-tools/model-transformation/plugins/org.eclipse.app4mc.transformation.log4j.configuration/headless_log4j.xml
+++ b/eclipse-tools/model-transformation/plugins/org.eclipse.app4mc.transformation.log4j.configuration/headless_log4j.xml
@@ -4,7 +4,7 @@
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<!-- only log errors to the console -->
- <param name="Threshold" value="${app4mc.log.level}"/>
+ <param name="Threshold" value="${app4mctransformation.log.level}"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
@@ -21,7 +21,7 @@
<root>
<!-- set the log level to debug to catch everything -->
<!-- on the appenders the threshold is set to filter further -->
- <level value="info" />
+ <level value="debug" />
<appender-ref ref="CONSOLE" />
<appender-ref ref="FILE" />
</root>
diff --git a/eclipse-tools/model-transformation/plugins/org.eclipse.app4mc.transformation.log4j.configuration/log4j.xml b/eclipse-tools/model-transformation/plugins/org.eclipse.app4mc.transformation.log4j.configuration/log4j.xml
index a39068c..87d95d6 100644
--- a/eclipse-tools/model-transformation/plugins/org.eclipse.app4mc.transformation.log4j.configuration/log4j.xml
+++ b/eclipse-tools/model-transformation/plugins/org.eclipse.app4mc.transformation.log4j.configuration/log4j.xml
@@ -4,7 +4,7 @@
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<!-- only log errors to the console -->
- <param name="Threshold" value="${app4mc.log.level}"/>
+ <param name="Threshold" value="${app4mctransformation.log.level}"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
@@ -25,7 +25,7 @@
<appender name="ECLIPSE_CONSOLE" class="org.eclipse.app4mc.transformation.log4j.configuration.CustomConsoleAppender">
<!-- only log errors to the console -->
- <param name="Threshold" value="ERROR"/>
+ <param name="Threshold" value="${app4mctransformation.log.level}"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d{yyyy-MM-dd_HH_mm_ss} - %-5p: %m%n" />