[Lada-commits] [PATCH 07 of 13] Added log4j2 config file
Wald Commits
scm-commit at wald.intevation.org
Fri Feb 6 17:57:41 CET 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1423226147 -3600
# Node ID 8157dd28aba79546108d3cc73ab2d9626caabb1b
# Parent 2b58a86ca06fe11448e96b39a40a4f2b8a6a7630
Added log4j2 config file.
diff -r 2b58a86ca06f -r 8157dd28aba7 src/main/webapp/WEB-INF/classes/log4j2.json
--- /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"
+ }
+ }
+ }
+ }
+}
More information about the Lada-commits
mailing list