aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-10-28 13:37:36 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-10-28 13:37:36 +0000
commit00b1bdd079910d58573b05265b469dc7214e70c1 (patch)
tree68e70e4324cc7f89bffb3cc4a4361092af8c449a
parent38187fc86fdc4bf839c35315b4be1c6ae71ca86f (diff)
downloadpdf-as-3-00b1bdd079910d58573b05265b469dc7214e70c1.tar.gz
pdf-as-3-00b1bdd079910d58573b05265b469dc7214e70c1.tar.bz2
pdf-as-3-00b1bdd079910d58573b05265b469dc7214e70c1.zip
Adding some logging...
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@373 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/tools/FileHelper.java7
-rw-r--r--work/cfg/log4j.properties1
2 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/tools/FileHelper.java b/src/main/java/at/knowcenter/wag/egov/egiz/tools/FileHelper.java
index 50b7bad..e72e52e 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/tools/FileHelper.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/tools/FileHelper.java
@@ -50,18 +50,21 @@ public class FileHelper {
*/
public static String readFromFile(String fileName) {
String file_string = null;
+ logger_.trace("Looking for file: " + fileName);
try {
BufferedReader reader = new BufferedReader(new FileReader(fileName));
+ logger_.trace("Reading file: " + fileName);
String line = null;
file_string = "";
while ((line = reader.readLine()) != null) {
file_string += line;
}
reader.close();
+ logger_.debug("File successfully read: " + fileName);
} catch (FileNotFoundException e) {
- logger_.debug("File not found:" + fileName);
+ logger_.debug("File not found: " + fileName);
} catch (IOException e) {
- logger_.debug("File can not read:" + fileName);
+ logger_.debug("Error reading file: " + fileName);
}
return file_string;
}
diff --git a/work/cfg/log4j.properties b/work/cfg/log4j.properties
index f6bb9e4..8bb0c67 100644
--- a/work/cfg/log4j.properties
+++ b/work/cfg/log4j.properties
@@ -6,6 +6,7 @@ log4j.logger.at.knowcenter = DEBUG
#log4j.logger.at.gv.egiz.pdfas = INFO
#log4j.logger.at.knowcenter = INFO
log4j.logger.org.apache.commons.httpclient.HttpMethodBase = ERROR
+log4j.logger.at.gv.egiz.pdfas.impl.vfilter.helper.VerificationFilterBinaryHelper = TRACE
# CONSOLE
log4j.appender.CONSOLE = org.apache.log4j.ConsoleAppender