Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / include / xbt / log.hpp
1 /* Copyright (c) 2016-2023. The SimGrid Team. All rights reserved.          */
2
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. */
5
6 #ifndef SIMGRID_XBT_LOG_HPP
7 #define SIMGRID_XBT_LOG_HPP
8
9 #include <simgrid/Exception.hpp>
10 #include <xbt/log.h>
11
12 namespace simgrid::xbt {
13
14 /** Display information about an exception
15  *
16  *  We display: the exception type, name, attached backtraces (if any) and
17  *  the nested exception (if any).
18  *
19  *  @ingroup XBT_ex
20  */
21 XBT_PUBLIC void log_exception(e_xbt_log_priority_t priority, const char* context, std::exception const& exception);
22
23 XBT_PUBLIC void install_exception_handler();
24
25 } // namespace simgrid::xbt
26
27 #endif