Mercurial > dive4elements > river
comparison backend/contrib/import_river.sh @ 8820:6d25d8f81168
import_river.sh: log less verbose.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 15 May 2017 16:23:27 +0200 |
parents | 79f9d837c5cc |
children | efa52271786b |
comparison
equal
deleted
inserted
replaced
8819:79f9d837c5cc | 8820:6d25d8f81168 |
---|---|
163 DATE=$(date +%Y.%m.%d_%H%M) | 163 DATE=$(date +%Y.%m.%d_%H%M) |
164 LOG_DIR=${LOG}/`basename $GEW_FILE .gew`-$DATE | 164 LOG_DIR=${LOG}/`basename $GEW_FILE .gew`-$DATE |
165 mkdir -p ${LOG_DIR} | 165 mkdir -p ${LOG_DIR} |
166 | 166 |
167 cat > "$LOG_DIR/log4j.properties" << "EOF" | 167 cat > "$LOG_DIR/log4j.properties" << "EOF" |
168 log4j.rootLogger=DEBUG, IMPORTER | 168 log4j.rootLogger=INFO, IMPORTER |
169 log4j.appender.IMPORTER.layout=org.apache.log4j.PatternLayout | 169 log4j.appender.IMPORTER.layout=org.apache.log4j.PatternLayout |
170 log4j.appender.IMPORTER.layout.ConversionPattern=%d [%t] %-5p %c - %m%n | 170 log4j.appender.IMPORTER.layout.ConversionPattern=%d [%t] %-5p %c - %m%n |
171 log4j.appender.IMPORTER=org.apache.log4j.RollingFileAppender | 171 log4j.appender.IMPORTER=org.apache.log4j.RollingFileAppender |
172 log4j.appender.IMPORTER.File=./import.log | 172 log4j.appender.IMPORTER.File=./import.log |
173 log4j.appender.IMPORTER.MaxFileSize=100000KB | 173 log4j.appender.IMPORTER.MaxFileSize=100000KB |