Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) Moving Logging directory per default to DATA/LOG See: http://www.yacy-forum.de/viewtopic.php?t=940#7656
theli7a7254713dfb
diff --git a/source/de/anomic/http/httpdProxyHandler.java b/source/de/anomic/http/httpdProxyHandler.javaindex 130f2dacf..38ac12596 100644--- a/source/de/anomic/http/httpdProxyHandler.java+++ b/source/de/anomic/http/httpdProxyHandler.java@@ -139,7 +139,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt// reading out some needed configuration propertiesint limit = 1024*1024, count = 20;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");if (limitStr != null) try { limit = Integer.valueOf(limitStr).intValue(); } catch (NumberFormatException e) {}diff --git a/source/de/anomic/server/logging/serverLog.java b/source/de/anomic/server/logging/serverLog.javaindex bac496c79..5adef6476 100644--- a/source/de/anomic/server/logging/serverLog.java+++ b/source/de/anomic/server/logging/serverLog.java@@ -165,7 +165,7 @@ public final class serverLog {logManager.readConfiguration(fileIn);// creating the logging directory- File log = new File("./log/");+ File log = new File("./DATA/LOG/");if(!log.canRead()) log.mkdir();// generating the root loggerdiff --git a/startYACY.sh b/startYACY.shindex e0cc64a40..70e6c0623 100755--- a/startYACY.sh+++ b/startYACY.sh@@ -23,7 +23,7 @@ elsenohup java -classpath classes:htroot:$CLASSPATH yacy > /dev/null &# nohup java -Xms160m -Xmx160m -classpath classes:htroot:$CLASSPATH yacy > /dev/null &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 administrate YaCy, start your web browser and open http://localhost:8080"fidiff --git a/stopYACY.sh b/stopYACY.shindex c514892e6..0de52f7c8 100755--- a/stopYACY.sh+++ b/stopYACY.sh@@ -8,4 +8,4 @@ for N in `ls -1 libx/*.jar`; do CLASSPATH="$CLASSPATH$N:"; donejava -classpath classes:htroot:$CLASSPATH yacy -shutdownecho "please wait until the YaCy daemon process terminates"-echo "you can monitor this with 'tail -f log/yacy00.log' and 'fuser log/yacy00.log'"\ No newline at end of file+echo "you can monitor this with 'tail -f DATA/LOG/yacy00.log' and 'fuser log/yacy00.log'"\ No newline at end of filediff --git a/yacy.logging b/yacy.loggingindex f2cb8cae2..2ae79261e 100644--- a/yacy.logging+++ b/yacy.logging@@ -11,7 +11,7 @@# CONFIG regular system status information (i.e. start-up messages)# FINE in-function status debug outputPARSER.level = INFO-YACY.level = FINE+YACY.level = INFOHTCACHE.level = INFOPLASMA.level = INFOSERVER.level = INFO@@ -25,7 +25,7 @@ handlers = java.util.logging.FileHandler,\# Properties for the FileHandlerjava.util.logging.FileHandler.limit = 1048576java.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.logjava.util.logging.FileHandler.level = ALLjava.util.logging.FileHandler.formatter=de.anomic.server.logging.serverSimpleLogFormatter@@ -46,5 +46,5 @@ de.anomic.server.logging.ConsoleOutErrHandler.formatter=de.anomic.server.loggingde.anomic.http.httpdProxyHandler.logging.enabled = TRUEde.anomic.http.httpdProxyHandler.logging.FileHandler.limit = 1048576de.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