serverLog instead of System.out.println

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@179 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 20 years ago
parent 7de98b1895
commit f57d280afd

@ -43,6 +43,8 @@
package de.anomic.data;
import de.anomic.server.serverLog;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
@ -67,7 +69,7 @@ public class translator {
while(keys.hasMoreElements()){
key = (String)keys.nextElement();
result = result.replaceAll(key, translationList.getProperty(key));
System.out.println("Replaced \""+key+"\" by \""+translationList.getProperty(key)+"\"");
//System.out.println("Replaced \""+key+"\" by \""+translationList.getProperty(key)+"\""); //DEBUG
}
return result;
}
@ -124,9 +126,9 @@ public class translator {
if(sourceFiles[i].getName().endsWith(extension)){
if(translateFile(sourceFiles[i], new File(destDir, sourceFiles[i].getName()), translationList)){
System.out.println("Translated File: "+ sourceFiles[i].getName());
serverLog.logInfo("Translator", "Translated File: "+ sourceFiles[i].getName());
}else{
System.err.println("File Error while translating File "+sourceFiles[i].getName());
serverLog.logError("Translator", "File Error while translating File "+sourceFiles[i].getName());
}
}

Loading…
Cancel
Save