Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'models_type_rework_part2_try2' into 'master'
[simgrid.git] / include / xbt / log.hpp
1 /* Copyright (c) 2016-2021. 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 {
13 namespace xbt {
14
15 /** Display information about an exception
16  *
17  *  We display: the exception type, name, attached backtraces (if any) and
18  *  the nested exception (if any).
19  *
20  *  @ingroup XBT_ex
21  */
22 XBT_PUBLIC void log_exception(e_xbt_log_priority_t priority, const char* context, std::exception const& exception);
23
24 XBT_PUBLIC void install_exception_handler();
25
26 } // namespace xbt
27 } // namespace simgrid
28
29 #endif