Skip to content

Commit

Permalink
*) Moving Logging directory per default to DATA/LOG
Browse files Browse the repository at this point in the history
  • Loading branch information
theli committed Sep 1, 2005
1 parent bead8a3 commit 7a72547
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion source/de/anomic/http/httpdProxyHandler.java
Expand Up @@ -139,7 +139,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
// reading out some needed configuration properties
int 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) {}
Expand Down
2 changes: 1 addition & 1 deletion source/de/anomic/server/logging/serverLog.java
Expand Up @@ -165,7 +165,7 @@ public static final void configureLogging(File loggingConfigFile) throws Securit
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 logger
Expand Down
2 changes: 1 addition & 1 deletion startYACY.sh
Expand Up @@ -23,7 +23,7 @@ else
nohup 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"
fi
2 changes: 1 addition & 1 deletion stopYACY.sh
Expand Up @@ -8,4 +8,4 @@ for N in `ls -1 libx/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done

java -classpath classes:htroot:$CLASSPATH yacy -shutdown
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'"
6 changes: 3 additions & 3 deletions yacy.logging
Expand Up @@ -11,7 +11,7 @@
# CONFIG regular system status information (i.e. start-up messages)
# FINE in-function status debug output
PARSER.level = INFO
YACY.level = FINE
YACY.level = INFO
HTCACHE.level = INFO
PLASMA.level = INFO
SERVER.level = INFO
Expand All @@ -25,7 +25,7 @@ handlers = java.util.logging.FileHandler,\
# Properties for the FileHandler
java.util.logging.FileHandler.limit = 1048576
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.formatter=de.anomic.server.logging.serverSimpleLogFormatter

Expand All @@ -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.FileHandler.limit = 1048576
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

0 comments on commit 7a72547

Please sign in to comment.