cpp-common/bt2c/fmt.hpp: use `wise_enum::string_type` in `EnableIfIsWiseEnum` definition
[babeltrace.git] / src / plugins / ctf / common / src / metadata / tsdl / logging.hpp
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (c) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5 */
6
7 #ifndef CTF_METADATA_LOGGING_H
8 #define CTF_METADATA_LOGGING_H
9
10 #include <babeltrace2/babeltrace.h>
11
12 #include "cpp-common/bt2c/logging.hpp"
13
14 #define _BT_CPPLOGT_LINENO(logger, _lineno, _msg, args...) \
15 BT_CPPLOGT_SPEC((logger), "At line {} in metadata stream: " _msg, _lineno, ##args)
16
17 #define _BT_CPPLOGW_LINENO(logger, _lineno, _msg, args...) \
18 BT_CPPLOGW_SPEC((logger), "At line {} in metadata stream: " _msg, _lineno, ##args)
19
20 #define _BT_CPPLOGE_LINENO(logger, _lineno, _msg, args...) \
21 BT_CPPLOGE_SPEC((logger), "At line {} in metadata stream: " _msg, _lineno, ##args)
22
23 #define _BT_CPPLOGE_APPEND_CAUSE_LINENO(logger, _lineno, _msg, args...) \
24 BT_CPPLOGE_APPEND_CAUSE_SPEC((logger), "At line {} in metadata stream: " _msg, _lineno, ##args)
25
26 #endif /* CTF_METADATA_LOGGING_H */
This page took 0.030592 seconds and 4 git commands to generate.