[log4j2] Replacing the config files with templates.
authorJavier Armendáriz <javier.armendariz@openbravo.com>
Thu, 11 Oct 2018 16:34:27 +0200
changeset 34974 d334412d51ba
parent 34973 7d7061023254
child 34975 58ed76aaa521
[log4j2] Replacing the config files with templates.
.hgignore
config/log4j2-web.xml
config/log4j2-web.xml.template
config/log4j2.xml
config/log4j2.xml.template
src-test/src/log4j2-test.xml
src-test/src/log4j2-test.xml.template
--- a/.hgignore	Thu Oct 11 13:00:34 2018 +0200
+++ b/.hgignore	Thu Oct 11 16:34:27 2018 +0200
@@ -26,7 +26,10 @@
 config/instance.revision
 config/eclipse/hibernate.cfg.xml
 src/result.xml
+config/log4j2.xml
+config/log4j2-web.xml
 
+src-test/src/log4j2-test.xml
 src-db/database/lib/dbmanager.jar
 src-db/database/formalChangesScript.xml
 src-core/lib/openbravo-core.jar
--- a/config/log4j2-web.xml	Thu Oct 11 13:00:34 2018 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Configuration status="WARN">
-  <Appenders>
-    <Console name="Console" target="SYSTEM_OUT">
-      <PatternLayout pattern="TOMCAT %d{HH:mm:ss.SSS} [%t] %-5level %l{1.}-- %msg%n"/>
-    </Console>
-  </Appenders>
-  <Loggers>
-    <Logger name="org.hibernate" level="error"/>
-    <Logger name="org.openbravo" level="warn"/>
-    <Root level="INFO">
-      <AppenderRef ref="Console"/>
-    </Root>
-  </Loggers>
-</Configuration>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/config/log4j2-web.xml.template	Thu Oct 11 16:34:27 2018 +0200
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Configuration status="WARN">
+  <Appenders>
+    <Console name="Console" target="SYSTEM_OUT">
+      <PatternLayout pattern="TOMCAT %d{HH:mm:ss.SSS} [%t] %-5level %l{1.}-- %msg%n"/>
+    </Console>
+  </Appenders>
+  <Loggers>
+    <Logger name="org.hibernate" level="error"/>
+    <Logger name="org.openbravo" level="warn"/>
+    <Root level="INFO">
+      <AppenderRef ref="Console"/>
+    </Root>
+  </Loggers>
+</Configuration>
\ No newline at end of file
--- a/config/log4j2.xml	Thu Oct 11 13:00:34 2018 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Configuration status="WARN">
-  <Appenders>
-    <Console name="Console" target="SYSTEM_OUT">
-      <PatternLayout pattern="BUILD %d{HH:mm:ss.SSS} [%t] %-5level %l{1.}-- %msg%n"/>
-    </Console>
-  </Appenders>
-  <Loggers>
-    <Root level="INFO">
-      <AppenderRef ref="Console"/>
-    </Root>
-  </Loggers>
-</Configuration>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/config/log4j2.xml.template	Thu Oct 11 16:34:27 2018 +0200
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Configuration status="WARN">
+  <Appenders>
+    <Console name="Console" target="SYSTEM_OUT">
+      <PatternLayout pattern="BUILD %d{HH:mm:ss.SSS} [%t] %-5level %l{1.}-- %msg%n"/>
+    </Console>
+  </Appenders>
+  <Loggers>
+    <Root level="INFO">
+      <AppenderRef ref="Console"/>
+    </Root>
+  </Loggers>
+</Configuration>
\ No newline at end of file
--- a/src-test/src/log4j2-test.xml	Thu Oct 11 13:00:34 2018 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Configuration status="WARN">
-  <Appenders>
-    <Console name="Console" target="SYSTEM_OUT">
-      <PatternLayout pattern="TEST %d{HH:mm:ss.SSS} [%t] %-5level %l{1.}-- %msg%n"/>
-    </Console>
-  </Appenders>
-  <Loggers>
-    <Root level="info">
-      <AppenderRef ref="Console"/>
-    </Root>
-    <Logger name="org.hibernate" level="error">
-      <AppenderRef ref="Console"/>
-    </Logger>
-  </Loggers>
-</Configuration>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src-test/src/log4j2-test.xml.template	Thu Oct 11 16:34:27 2018 +0200
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Configuration status="WARN">
+  <Appenders>
+    <Console name="Console" target="SYSTEM_OUT">
+      <PatternLayout pattern="TEST %d{HH:mm:ss.SSS} [%t] %-5level %l{1.}-- %msg%n"/>
+    </Console>
+  </Appenders>
+  <Loggers>
+    <Root level="info">
+      <AppenderRef ref="Console"/>
+    </Root>
+    <Logger name="org.hibernate" level="error">
+      <AppenderRef ref="Console"/>
+    </Logger>
+  </Loggers>
+</Configuration>
\ No newline at end of file