aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java
diff options
context:
space:
mode:
authorFlorian Reimair <florian.reimair@iaik.tugraz.at>2016-01-12 15:34:46 +0100
committerFlorian Reimair <florian.reimair@iaik.tugraz.at>2016-01-12 15:34:46 +0100
commit31d5edb552ba03ce474f050bf2e69316af1ee623 (patch)
tree0b97076b58167389cb8ffa8ef5f98fcf7d160bdc /common/src/main/java
parent1df90d0efe126150b5e1cfa245a5ad9280068243 (diff)
downloadmoa-id-spss-31d5edb552ba03ce474f050bf2e69316af1ee623.tar.gz
moa-id-spss-31d5edb552ba03ce474f050bf2e69316af1ee623.tar.bz2
moa-id-spss-31d5edb552ba03ce474f050bf2e69316af1ee623.zip
use general config eidas (in progress)
Diffstat (limited to 'common/src/main/java')
-rw-r--r--common/src/main/java/at/gv/egovernment/moa/logging/Logger.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/common/src/main/java/at/gv/egovernment/moa/logging/Logger.java b/common/src/main/java/at/gv/egovernment/moa/logging/Logger.java
index 7cb2e7daf..3730b36ce 100644
--- a/common/src/main/java/at/gv/egovernment/moa/logging/Logger.java
+++ b/common/src/main/java/at/gv/egovernment/moa/logging/Logger.java
@@ -168,6 +168,17 @@ public class Logger {
}
/**
+ * Info.
+ *
+ * @param string the string
+ * @param args the objects
+ */
+ public static void info(String message, Object[] args) {
+ org.slf4j.Logger logger = getLogger();
+ logger.info(prepareMessage(message), args);
+ }
+
+ /**
* Log a warning message.
*
* @param message The message to log.
@@ -210,6 +221,17 @@ public class Logger {
}
/**
+ * Log an error message with additional information.
+ *
+ * @param message The message to log.
+ * @param variables The values to substitute {} of the logmessage with.
+ */
+ public static void error(Object message, Object[] variables) {
+ org.slf4j.Logger logger = getLogger();
+ logger.error(prepareMessage(message), variables);
+ }
+
+ /**
* Log a fatal error message.
*
* @param message The message to log.