Fix: plugin-dev.h: Disable address sanitizer on pointer array section variables
[babeltrace.git] / include / babeltrace2 / logging-defs.h
CommitLineData
9103e903
SM
1/*
2 * No include guards here: it is safe to include this file multiple
3 * times.
4 */
5
6/*
7 * Copyright (c) 2019 EfficiOS Inc.
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a copy
10 * of this software and associated documentation files (the "Software"), to deal
11 * in the Software without restriction, including without limitation the rights
12 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 * copies of the Software, and to permit persons to whom the Software is
14 * furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included in
17 * all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25 * SOFTWARE.
26 */
27
28#ifndef __BT_IN_BABELTRACE_H
29# error "Please include <babeltrace2/babeltrace.h> instead."
30#endif
31
32/*
33 * This is NOT part of the API.
34 *
35 * These macros are used internally in preprocessor conditions to define
36 * logging macros.
37 */
38
39#ifndef __BT_LOGGING_LEVEL_TRACE
40# define __BT_LOGGING_LEVEL_TRACE 1
41#endif
42
43#ifndef __BT_LOGGING_LEVEL_DEBUG
44# define __BT_LOGGING_LEVEL_DEBUG 2
45#endif
46
47#ifndef __BT_LOGGING_LEVEL_INFO
48# define __BT_LOGGING_LEVEL_INFO 3
49#endif
50
51#ifndef __BT_LOGGING_LEVEL_WARNING
52# define __BT_LOGGING_LEVEL_WARNING 4
53#endif
54
55#ifndef __BT_LOGGING_LEVEL_ERROR
56# define __BT_LOGGING_LEVEL_ERROR 5
57#endif
58
59#ifndef __BT_LOGGING_LEVEL_FATAL
60# define __BT_LOGGING_LEVEL_FATAL 6
61#endif
62
63#ifndef __BT_LOGGING_LEVEL_NONE
64# define __BT_LOGGING_LEVEL_NONE 0xff
65#endif
This page took 0.031836 seconds and 4 git commands to generate.