Elements  6.0.1
A C++ base framework for the Euclid Software.
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 
28 namespace Elements {
29 namespace 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()