aboutsummaryrefslogtreecommitdiff
path: root/id/oa/src/main
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-03-05 19:12:29 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-03-05 19:12:29 +0100
commitcbfde5daa2425973b00864a8f96152dfca0b550b (patch)
tree99d8f73e6b0cb4c965b24111fda52140d58f8f37 /id/oa/src/main
parent886cffeac60f22f836cfae586eb23bcb6ffc799a (diff)
downloadmoa-id-spss-cbfde5daa2425973b00864a8f96152dfca0b550b.tar.gz
moa-id-spss-cbfde5daa2425973b00864a8f96152dfca0b550b.tar.bz2
moa-id-spss-cbfde5daa2425973b00864a8f96152dfca0b550b.zip
Add logging to PVP 2.1 demo application
Diffstat (limited to 'id/oa/src/main')
-rw-r--r--id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/Configuration.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/Configuration.java b/id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/Configuration.java
index c143d050b..85f16e11f 100644
--- a/id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/Configuration.java
+++ b/id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/Configuration.java
@@ -40,6 +40,7 @@ import java.util.Timer;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.httpclient.HttpClient;
+import org.apache.log4j.Logger;
import org.opensaml.DefaultBootstrap;
import org.opensaml.saml2.metadata.provider.HTTPMetadataProvider;
import org.opensaml.xml.parse.BasicParserPool;
@@ -52,6 +53,8 @@ import at.iaik.commons.util.MiscUtil;
public class Configuration {
+ private static final Logger log = Logger.getLogger(Configuration.class);
+
private Properties props;
private static final String SYSTEM_PROP_CONFIG = "moa.id.demoOA";
@@ -216,6 +219,8 @@ public class Configuration {
//load OpenSAML library
DefaultBootstrap.bootstrap();
+ log.info("Demo Application initializaten finished.");
+
} catch ( FileNotFoundException e) {
throw new ConfigurationException("DemoOA configuration is not found at " + configFileName);
@@ -259,6 +264,8 @@ public class Configuration {
pvp2logininitialzied = true;
+ log.info("Load IDP Metadata finished.");
+
} catch (Exception e) {
throw new ConfigurationException("PVP2 authentification can not be initialized.", e);
}