Mercurial > lada > lada-server
diff src/main/webapp/WEB-INF/classes/log4j2.json @ 436:8157dd28aba7
Added log4j2 config file.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 06 Feb 2015 13:35:47 +0100 |
parents | |
children |
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" + } + } + } + } +}