1 # SPDX-License-Identifier: MIT
3 # Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
5 from bt2
import native_bt
9 TRACE
= native_bt
.LOGGING_LEVEL_TRACE
10 DEBUG
= native_bt
.LOGGING_LEVEL_DEBUG
11 INFO
= native_bt
.LOGGING_LEVEL_INFO
12 WARNING
= native_bt
.LOGGING_LEVEL_WARNING
13 ERROR
= native_bt
.LOGGING_LEVEL_ERROR
14 FATAL
= native_bt
.LOGGING_LEVEL_FATAL
15 NONE
= native_bt
.LOGGING_LEVEL_NONE
18 def get_minimal_logging_level():
19 return native_bt
.logging_get_minimal_level()
22 def get_global_logging_level():
23 return native_bt
.logging_get_global_level()
26 def set_global_logging_level(level
):
37 if level
not in levels
:
38 raise TypeError("'{}' is not a valid logging level".format(level
))
40 return native_bt
.logging_set_global_level(level
)
This page took 0.032125 seconds and 4 git commands to generate.