mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
*) added LogalizerHandler-settings to yacy.logging.
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3228 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
fdb45378fb
commit
e5f854bc37
|
@ -82,14 +82,14 @@ public class LogalizerHandler extends Handler {
|
|||
File parserDir = new File(new URI(packageURI));
|
||||
//System.out.println(parserDir.toString());
|
||||
String [] parserDirFiles = parserDir.list(parserNameFilter);
|
||||
if(parserDirFiles == null && enabled) {
|
||||
if(parserDirFiles == null && debug) {
|
||||
System.out.println("Can't find any parsers in "+parserDir.getAbsolutePath());
|
||||
}
|
||||
//System.out.println(parserDirFiles.length);
|
||||
for (int i=0; i<parserDirFiles.length; i++) {
|
||||
String tmp = parserDirFiles[i].substring(0,parserDirFiles[i].indexOf(".class"));
|
||||
Class tempClass = Class.forName(logParserPackage+"."+tmp);
|
||||
if (tempClass.isInterface() && enabled) System.out.println(tempClass.getName() + " is an Interface");
|
||||
if (tempClass.isInterface() && debug) System.out.println(tempClass.getName() + " is an Interface");
|
||||
else {
|
||||
Object theParser = tempClass.newInstance();
|
||||
if (theParser instanceof LogParser) {
|
||||
|
|
|
@ -26,7 +26,8 @@ STACKCRAWL-POOL.level = INFO
|
|||
# List of global handlers
|
||||
handlers = java.util.logging.FileHandler,\
|
||||
de.anomic.server.logging.GuiHandler,\
|
||||
de.anomic.server.logging.ConsoleOutErrHandler
|
||||
de.anomic.server.logging.ConsoleOutErrHandler,\
|
||||
de.anomic.server.logging.LogalizerHandler
|
||||
|
||||
# Properties for the FileHandler
|
||||
java.util.logging.FileHandler.limit = 1048576
|
||||
|
@ -55,3 +56,7 @@ de.anomic.http.httpdProxyHandler.logging.FileHandler.limit = 1048576
|
|||
de.anomic.http.httpdProxyHandler.logging.FileHandler.count = 20
|
||||
de.anomic.http.httpdProxyHandler.logging.FileHandler.pattern = DATA/LOG/proxyAccess%u%g.log
|
||||
|
||||
# Properties for the LogalizerHandler
|
||||
de.anomic.server.logging.LogalizerHandler.enabled = false
|
||||
de.anomic.server.logging.LogalizerHandler.debug = false
|
||||
de.anomic.server.logging.LogalizerHandler.parserPackage = de.anomic.server.logging.logParsers
|
||||
|
|
Loading…
Reference in New Issue
Block a user