2 * Copyright (c) 2021 Philippe Proulx <pproulx@efficios.com>
4 * SPDX-License-Identifier: MIT
7 #ifndef BABELTRACE_CPP_COMMON_BT2_LOGGING_HPP
8 #define BABELTRACE_CPP_COMMON_BT2_LOGGING_HPP
10 #include <babeltrace2/babeltrace.h>
12 #include "common/macros.h"
16 /* Avoid `-Wshadow` error on GCC, conflicting with `bt2::Error` */
20 enum class LoggingLevel
22 Trace = BT_LOGGING_LEVEL_TRACE,
23 Debug = BT_LOGGING_LEVEL_DEBUG,
24 Info = BT_LOGGING_LEVEL_INFO,
25 Warning = BT_LOGGING_LEVEL_WARNING,
26 Error = BT_LOGGING_LEVEL_ERROR,
27 Fatal = BT_LOGGING_LEVEL_FATAL,
28 None = BT_LOGGING_LEVEL_NONE,
35 #endif /* BABELTRACE_CPP_COMMON_BT2_LOGGING_HPP */