diff options
| author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-18 15:30:18 +0100 |
|---|---|---|
| committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-18 15:30:18 +0100 |
| commit | 8ab0709045667f8e1a67a9981c619980c9aebd1a (patch) | |
| tree | f39812b3d216566de7c4dcdaacc7c607aa7e646c /src/core/common/Logger.hpp | |
| parent | cd55519130c5f91d95107b3b1e1a8203caa5008a (diff) | |
| parent | 372c67e0844654362fc7d440b0b4a31500a6d02a (diff) | |
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'src/core/common/Logger.hpp')
| -rw-r--r-- | src/core/common/Logger.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/common/Logger.hpp b/src/core/common/Logger.hpp index b365a39..767d8ab 100644 --- a/src/core/common/Logger.hpp +++ b/src/core/common/Logger.hpp @@ -243,6 +243,16 @@ public: } /** + * Logs the given loggable exception at the given location. + * + * @param ex is the exception that should be logged. + */ + void log(const LoggableException &ex, const SourceLocation &loc) + { + log(Severity::ERROR, ex.msg, loc.valid() ? loc : ex.getLocation()); + } + + /** * Logs the given message. The file name is set to the topmost file name on * the file name stack. * |
