884957efe48c2daa381f154f5490aa77e07f13bf
[babeltrace.git] / include / babeltrace2 / logging-defs.h
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation
5 */
6
7 /*
8 * No include guards here: it is safe to include this file multiple
9 * times.
10 */
11
12 /* IWYU pragma: private, include <babeltrace2/babeltrace.h> */
13
14 #ifndef __BT_IN_BABELTRACE_H
15 # error "Please include <babeltrace2/babeltrace.h> instead."
16 #endif
17
18 /*
19 * This is NOT part of the API.
20 *
21 * These macros are used internally in preprocessor conditions to define
22 * logging macros.
23 */
24
25 #ifndef __BT_LOGGING_LEVEL_TRACE
26 # define __BT_LOGGING_LEVEL_TRACE 1
27 #endif
28
29 #ifndef __BT_LOGGING_LEVEL_DEBUG
30 # define __BT_LOGGING_LEVEL_DEBUG 2
31 #endif
32
33 #ifndef __BT_LOGGING_LEVEL_INFO
34 # define __BT_LOGGING_LEVEL_INFO 3
35 #endif
36
37 #ifndef __BT_LOGGING_LEVEL_WARNING
38 # define __BT_LOGGING_LEVEL_WARNING 4
39 #endif
40
41 #ifndef __BT_LOGGING_LEVEL_ERROR
42 # define __BT_LOGGING_LEVEL_ERROR 5
43 #endif
44
45 #ifndef __BT_LOGGING_LEVEL_FATAL
46 # define __BT_LOGGING_LEVEL_FATAL 6
47 #endif
48
49 #ifndef __BT_LOGGING_LEVEL_NONE
50 # define __BT_LOGGING_LEVEL_NONE 0xff
51 #endif
This page took 0.032457 seconds and 5 git commands to generate.