Elements 6.1.2
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
crashingFunction.cpp
Go to the documentation of this file.
1
23
24#include <stdexcept> // for the logic_error
25
26#include "ElementsKernel/Logging.h" // for the Logging
27
28namespace Elements {
29namespace Examples {
30
32 auto log = Logging::getLogger("ElementsExamples");
33 log.info() << "Entering Crashing Function";
34
35 throw std::logic_error("arrg!");
36}
37
38} // namespace Examples
39} // namespace Elements
Logging facility.
static Logging getLogger(const std::string &name="")
Definition: Logging.cpp:63
ELEMENTS_API void crashingFunction()