summaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/util/data/ElectronicIdentity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/gv/util/data/ElectronicIdentity.java')
-rw-r--r--src/main/java/at/gv/util/data/ElectronicIdentity.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/at/gv/util/data/ElectronicIdentity.java b/src/main/java/at/gv/util/data/ElectronicIdentity.java
index ea5bd25..afbf652 100644
--- a/src/main/java/at/gv/util/data/ElectronicIdentity.java
+++ b/src/main/java/at/gv/util/data/ElectronicIdentity.java
@@ -40,7 +40,8 @@ import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.time.DateFormatUtils;
import org.apache.commons.lang.time.DateUtils;
-import org.apache.log4j.Logger;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -72,7 +73,7 @@ public final class ElectronicIdentity implements Serializable, Empty, RoleContai
private static final long serialVersionUID = 1L;
- private Logger log = Logger.getLogger(this.getClass().getName());
+ private Logger log = LoggerFactory.getLogger(this.getClass().getName());
private static final String FIRSTNAME = "firstname";
private static final String LASTNAME = "lastname";
@@ -331,7 +332,7 @@ public final class ElectronicIdentity implements Serializable, Empty, RoleContai
public ElectronicIdentity(AssertionType assertion, boolean isMOAIDAssertion) throws EgovUtilException {
this();
// debug moa-id response
- log.trace("Debug response: " + System.getProperty("debug.moaid.log.path") != null);
+ log.trace("Debug response: {}", System.getProperty("debug.moaid.log.path") != null);
if (System.getProperty("debug.moaid.log.path") != null) {
try {
ObjectFactory of = new ObjectFactory();
@@ -344,7 +345,7 @@ public final class ElectronicIdentity implements Serializable, Empty, RoleContai
fos.flush();
fos.close();
} catch(Exception e) {
- log.debug(e);
+ log.debug(e.getMessage(), e);
}
}
if (isMOAIDAssertion) {
@@ -506,7 +507,7 @@ public final class ElectronicIdentity implements Serializable, Empty, RoleContai
properties.getProperty(DATEOFBIRTH), new String[] { "yyyy-MM-dd",
"dd.MM.yyyy", }));
} catch (ParseException e) {
- log.error(e);
+ log.error(e.getMessage(), e);
}
}
this.setTitle(properties.getProperty(TITLE));