changeset 436:8157dd28aba7

Added log4j2 config file.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 06 Feb 2015 13:35:47 +0100
parents 2b58a86ca06f
children 5011173fd340
files src/main/webapp/WEB-INF/classes/log4j2.json
diffstat 1 files changed, 41 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/webapp/WEB-INF/classes/log4j2.json	Fri Feb 06 13:35:47 2015 +0100
@@ -0,0 +1,41 @@
+{
+    "configuration": {
+        "status": "error",
+        "name": "LadaLogger",
+        "properties": {
+            "property": [{
+                "name": "filename",
+                "value": "lada-test.log"
+            }, {
+                "name": "directory",
+                "value": "../log"
+            }]
+        },
+        "appenders": {
+            "RollingFile": {
+                "name": "File",
+                "fileName": "${directory}/${filename}",
+                "filePattern": "${directory}/${date:yyyy-MM}/test-%d{MM-dd-yyyy}-%i.log",
+                "patternLayout": {
+                    "pattern": "%d %p %logger: %m%n"
+                },
+                "policies": {
+                    "SizeBasedTriggeringPolicy": {
+                        "size": "2 MB"
+                    }
+                },
+                "DefaultRolloverStrategy": {
+                    "max": "10"
+                }
+            }
+        },
+        "loggers": {
+            "root": {
+                "level": "debug",
+                "appender-ref": {
+                    "ref": "File"
+                }
+            }
+        }
+    }
+}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)