Mercurial > dive4elements > river
changeset 7783:e55119cbdc19
Useful server-logging for demo installation.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 05 Mar 2014 15:53:46 +0100 |
parents | 507ce37ba6cd |
children | 9cefe1ab5b10 |
files | artifacts/doc/conf/log4j.properties contrib/make_flys_release/confs/log4j.properties contrib/make_flys_release/make_release.sh doc/INSTALL_DE |
diffstat | 4 files changed, 24 insertions(+), 47 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/artifacts/doc/conf/log4j.properties Wed Mar 05 15:53:46 2014 +0100 @@ -0,0 +1,18 @@ +log4j.rootLogger=DEBUG, FLYS + +########## EXTERNAL PACKAGES +log4j.category.org.hibernate=WARN +log4j.category.net.sf.ehcache=WARN +log4j.category.org.eclipse=WARN +log4j.category.org.restlet=INFO + + +########## APPENDER SETTINGS +log4j.appender.FLYS.layout=org.apache.log4j.PatternLayout +log4j.appender.FLYS.layout.ConversionPattern=%d{HH:mm:ss} [%t] %-5p %c{1} - %m%n + + +log4j.appender.FLYS=org.apache.log4j.RollingFileAppender +log4j.appender.FLYS.File=/var/log/d4e-river/d4e-server.log +log4j.appender.FLYS.MaxFileSize=5000KB +log4j.appender.FLYS.MaxBackupIndex=1
--- a/contrib/make_flys_release/confs/log4j.properties Tue Mar 04 19:24:10 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -log4j.rootLogger=DEBUG, FLYS - -########## INTERNAL PACKAGES -log4j.category.de.intevation.artifactdatabase=INFO - -########## INTERNAL CLASSES -log4j.category.de.intevation.artifactdatabase.DatabaseCleaner=INFO -log4j.category.de.intevation.flys.utils.ThemeUtil=INFO - - -########## EXTERNAL PACKAGES -log4j.category.org.hibernate=WARN -log4j.category.net.sf.ehcache=WARN -log4j.category.org.eclipse=WARN -log4j.category.org.restlet=INFO - - -########## APPENDER SETTINGS -log4j.appender.FLYS.layout=org.apache.log4j.PatternLayout -log4j.appender.FLYS.layout.ConversionPattern=%d{HH:mm:ss} [%t] %-5p %c{1} - %m%n - - -log4j.appender.FLYS=org.apache.log4j.RollingFileAppender -log4j.appender.FLYS.File=/tmp/flys-server-default.log -log4j.appender.FLYS.MaxFileSize=5000KB -log4j.appender.FLYS.MaxBackupIndex=1 -
--- a/contrib/make_flys_release/make_release.sh Tue Mar 04 19:24:10 2014 +0100 +++ b/contrib/make_flys_release/make_release.sh Wed Mar 05 15:53:46 2014 +0100 @@ -309,9 +309,8 @@ sed -i -e "s@/tmp/flys-user-wms.log@${LOG_DIR}/user-wms-${VERSION}.log@g" \ $WORK_DIR/server/conf/mapserver/mapfile.vm -sed "s@/tmp/flys-server-default.log@${LOG_DIR}/server-${VERSION}.log@" \ - $SCRIPT_DIR/confs/log4j.properties \ - > $WORK_DIR/server/conf/log4j.properties +sed -i -e "s@/var/log/d4e-river/d4e-server.log@${LOG_DIR}/server-${VERSION}.log@" \ + $WORK_DIR/server/conf/log4j.properties sed -i -e "s@<dgm-path>/path/to/rivers/</dgm-path>@<dgm-path>${DGM_PATH}</dgm-path>@g" \ -e "s@<help-url>http://example.com</help-url>@<help-url>${WIKI_URL}</help-url>@g" \
--- a/doc/INSTALL_DE Tue Mar 04 19:24:10 2014 +0100 +++ b/doc/INSTALL_DE Wed Mar 05 15:53:46 2014 +0100 @@ -138,23 +138,10 @@ Konfigurieren des Logging ------------------------- -#. Pfade in den log4j.properties anpassen - - $ vi river/artifacts/doc/conf/log4j.properties - - # Den Inhalt mit folgendem ersetzen: - - # Set root logger level to DEBUG and its only appender to A1. - log4j.rootLogger=DEBUG, A1 - - # A1 uses PatternLayout. - log4j.appender.A1.layout=org.apache.log4j.PatternLayout - log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n - - log4j.appender.A1=org.apache.log4j.RollingFileAppender - log4j.appender.A1.File=/var/log/d4e-river/d4e-server.log - log4j.appender.A1.MaxFileSize=5000KB - log4j.appender.A1.MaxBackupIndex=3 + # Anpassungen des Loggings können für den Client in + # river/gwt-client/src/main/webapp/WEB-INF/log4j.properties + # und für den Server in river/artifacts/doc/conf/log4j.properties + # vorgenommen werden Bauen der Server- und Clientkomponenten