1 /* Copyright (c) 2016-2021. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMGRID_XBT_LOG_HPP
7 #define SIMGRID_XBT_LOG_HPP
9 #include <simgrid/Exception.hpp>
15 /** Display information about an exception
17 * We display: the exception type, name, attached backtraces (if any) and
18 * the nested exception (if any).
22 XBT_PUBLIC void log_exception(e_xbt_log_priority_t priority, const char* context, std::exception const& exception);
24 XBT_PUBLIC void install_exception_handler();
27 } // namespace simgrid