*) Moving Logging directory per default to DATA/LOG

See: http://www.yacy-forum.de/viewtopic.php?t=940#7656

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@627 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent bead8a32aa
commit 7a7254713d

@ -139,7 +139,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
// reading out some needed configuration properties // reading out some needed configuration properties
int limit = 1024*1024, count = 20; int limit = 1024*1024, count = 20;
String pattern = manager.getProperty(className + ".logging.FileHandler.pattern"); String pattern = manager.getProperty(className + ".logging.FileHandler.pattern");
if (pattern == null) pattern = "log/proxyAccess%u%g.log"; if (pattern == null) pattern = "DATA/LOG/proxyAccess%u%g.log";
String limitStr = manager.getProperty(className + ".logging.FileHandler.limit"); String limitStr = manager.getProperty(className + ".logging.FileHandler.limit");
if (limitStr != null) try { limit = Integer.valueOf(limitStr).intValue(); } catch (NumberFormatException e) {} if (limitStr != null) try { limit = Integer.valueOf(limitStr).intValue(); } catch (NumberFormatException e) {}

@ -165,7 +165,7 @@ public final class serverLog {
logManager.readConfiguration(fileIn); logManager.readConfiguration(fileIn);
// creating the logging directory // creating the logging directory
File log = new File("./log/"); File log = new File("./DATA/LOG/");
if(!log.canRead()) log.mkdir(); if(!log.canRead()) log.mkdir();
// generating the root logger // generating the root logger

@ -23,7 +23,7 @@ else
nohup java -classpath classes:htroot:$CLASSPATH yacy > /dev/null & nohup java -classpath classes:htroot:$CLASSPATH yacy > /dev/null &
# nohup java -Xms160m -Xmx160m -classpath classes:htroot:$CLASSPATH yacy > /dev/null & # nohup java -Xms160m -Xmx160m -classpath classes:htroot:$CLASSPATH yacy > /dev/null &
fi fi
echo "YaCy started as daemon process. View it's activity in log/yacy00.log" echo "YaCy started as daemon process. View it's activity in DATA/LOG/yacy00.log"
echo "To stop YaCy, please execute stopYACY.sh and wait some seconds" echo "To stop YaCy, please execute stopYACY.sh and wait some seconds"
echo "To administrate YaCy, start your web browser and open http://localhost:8080" echo "To administrate YaCy, start your web browser and open http://localhost:8080"
fi fi

@ -8,4 +8,4 @@ for N in `ls -1 libx/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done
java -classpath classes:htroot:$CLASSPATH yacy -shutdown java -classpath classes:htroot:$CLASSPATH yacy -shutdown
echo "please wait until the YaCy daemon process terminates" echo "please wait until the YaCy daemon process terminates"
echo "you can monitor this with 'tail -f log/yacy00.log' and 'fuser log/yacy00.log'" echo "you can monitor this with 'tail -f DATA/LOG/yacy00.log' and 'fuser log/yacy00.log'"

@ -11,7 +11,7 @@
# CONFIG regular system status information (i.e. start-up messages) # CONFIG regular system status information (i.e. start-up messages)
# FINE in-function status debug output # FINE in-function status debug output
PARSER.level = INFO PARSER.level = INFO
YACY.level = FINE YACY.level = INFO
HTCACHE.level = INFO HTCACHE.level = INFO
PLASMA.level = INFO PLASMA.level = INFO
SERVER.level = INFO SERVER.level = INFO
@ -25,7 +25,7 @@ handlers = java.util.logging.FileHandler,\
# Properties for the FileHandler # Properties for the FileHandler
java.util.logging.FileHandler.limit = 1048576 java.util.logging.FileHandler.limit = 1048576
java.util.logging.FileHandler.count = 20 java.util.logging.FileHandler.count = 20
java.util.logging.FileHandler.pattern = log/yacy%u%g.log java.util.logging.FileHandler.pattern = DATA/LOG/yacy%u%g.log
java.util.logging.FileHandler.level = ALL java.util.logging.FileHandler.level = ALL
java.util.logging.FileHandler.formatter=de.anomic.server.logging.serverSimpleLogFormatter java.util.logging.FileHandler.formatter=de.anomic.server.logging.serverSimpleLogFormatter
@ -46,5 +46,5 @@ de.anomic.server.logging.ConsoleOutErrHandler.formatter=de.anomic.server.logging
de.anomic.http.httpdProxyHandler.logging.enabled = TRUE de.anomic.http.httpdProxyHandler.logging.enabled = TRUE
de.anomic.http.httpdProxyHandler.logging.FileHandler.limit = 1048576 de.anomic.http.httpdProxyHandler.logging.FileHandler.limit = 1048576
de.anomic.http.httpdProxyHandler.logging.FileHandler.count = 20 de.anomic.http.httpdProxyHandler.logging.FileHandler.count = 20
de.anomic.http.httpdProxyHandler.logging.FileHandler.pattern = log/proxyAccess%u%g.log de.anomic.http.httpdProxyHandler.logging.FileHandler.pattern = DATA/LOG/proxyAccess%u%g.log

Loading…
Cancel
Save