Babeltrace 2 C API 2.0.6
Open-source trace manipulation framework
Loading...
Searching...
No Matches
logging.h
1#ifndef BABELTRACE2_LOGGING_H
2#define BABELTRACE2_LOGGING_H
3
4/*
5 * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal
9 * in the Software without restriction, including without limitation the rights
10 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 * copies of the Software, and to permit persons to whom the Software is
12 * furnished to do so, subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included in
15 * all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 * SOFTWARE.
24 */
25
26#ifndef __BT_IN_BABELTRACE_H
27# error "Please include <babeltrace2/babeltrace.h> instead."
28#endif
29
30#include <babeltrace2/logging-defs.h>
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
110typedef enum bt_logging_level {
120 BT_LOGGING_LEVEL_TRACE = __BT_LOGGING_LEVEL_TRACE,
121
132 BT_LOGGING_LEVEL_DEBUG = __BT_LOGGING_LEVEL_DEBUG,
133
144 BT_LOGGING_LEVEL_INFO = __BT_LOGGING_LEVEL_INFO,
145
156 BT_LOGGING_LEVEL_WARNING = __BT_LOGGING_LEVEL_WARNING,
157
171 BT_LOGGING_LEVEL_ERROR = __BT_LOGGING_LEVEL_ERROR,
172
182 BT_LOGGING_LEVEL_FATAL = __BT_LOGGING_LEVEL_FATAL,
183
188 BT_LOGGING_LEVEL_NONE = __BT_LOGGING_LEVEL_NONE,
190
207
219
238
241#ifdef __cplusplus
242}
243#endif
244
245#endif /* BABELTRACE2_LOGGING_H */
bt_logging_level bt_logging_get_minimal_level(void)
Returns the library's minimal (build-time) logging level.
void bt_logging_set_global_level(bt_logging_level logging_level)
Sets the logging level of all the libbabeltrace2 modules to logging_level.
bt_logging_level
Logging level enumerators.
Definition logging.h:110
bt_logging_level bt_logging_get_global_level(void)
Returns the current logging level of all the libbabeltrace2 modules.
@ BT_LOGGING_LEVEL_WARNING
WARNING level.
Definition logging.h:156
@ BT_LOGGING_LEVEL_NONE
Logging is disabled.
Definition logging.h:188
@ BT_LOGGING_LEVEL_FATAL
FATAL level.
Definition logging.h:182
@ BT_LOGGING_LEVEL_ERROR
ERROR level.
Definition logging.h:171
@ BT_LOGGING_LEVEL_TRACE
TRACE level.
Definition logging.h:120
@ BT_LOGGING_LEVEL_DEBUG
DEBUG level.
Definition logging.h:132
@ BT_LOGGING_LEVEL_INFO
INFO level.
Definition logging.h:144