diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-01-13 08:36:55 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-01-13 08:36:55 +0100 |
commit | fc19526f8e32ad2de2df5ea60263f8d1c2355b88 (patch) | |
tree | 11fa54ea89f0566995a067171118078a2dbab711 /common/src/main/java/at | |
parent | 05e959fac7cca57540a768afb81fb06c3a0ae121 (diff) | |
parent | 29f01a4975f637c26fbcd0b43a9c844d7d3d2e54 (diff) | |
download | moa-id-spss-fc19526f8e32ad2de2df5ea60263f8d1c2355b88.tar.gz moa-id-spss-fc19526f8e32ad2de2df5ea60263f8d1c2355b88.tar.bz2 moa-id-spss-fc19526f8e32ad2de2df5ea60263f8d1c2355b88.zip |
Merge branch 'eSense_eIDAS_development' of gitlab.iaik.tugraz.at:afitzek/moa-idspss into eSense_eIDAS_development
Diffstat (limited to 'common/src/main/java/at')
-rw-r--r-- | common/src/main/java/at/gv/egovernment/moa/logging/Logger.java | 22 |
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. |