Commit | Line | Data |
---|---|---|
7e8f2e9c JG |
1 | /* |
2 | * Copyright (C) 2021 Jérémie Galarneau <jeremie.galarneau@efficios.com> | |
3 | * | |
4 | * SPDX-License-Identifier: GPL-2.0-only | |
5 | * | |
6 | */ | |
7 | ||
8 | #ifndef _LTTNG_LOGLEVEL_UTILS_H | |
9 | #define _LTTNG_LOGLEVEL_UTILS_H | |
10 | ||
11 | #include <lttng/lttng.h> | |
12 | #include <common/macros.h> | |
13 | ||
7e8f2e9c JG |
14 | int loglevel_name_to_value(const char *name, enum lttng_loglevel *loglevel); |
15 | ||
949f049b SM |
16 | bool loglevel_parse_range_string(const char *str, |
17 | enum lttng_loglevel *min, | |
18 | enum lttng_loglevel *max); | |
19 | ||
7e8f2e9c JG |
20 | int loglevel_log4j_name_to_value( |
21 | const char *name, enum lttng_loglevel_log4j *loglevel); | |
22 | ||
949f049b SM |
23 | bool loglevel_log4j_parse_range_string(const char *str, |
24 | enum lttng_loglevel_log4j *min, | |
25 | enum lttng_loglevel_log4j *max); | |
26 | ||
7e8f2e9c JG |
27 | int loglevel_jul_name_to_value( |
28 | const char *name, enum lttng_loglevel_jul *loglevel); | |
29 | ||
949f049b SM |
30 | bool loglevel_jul_parse_range_string(const char *str, |
31 | enum lttng_loglevel_jul *min, | |
32 | enum lttng_loglevel_jul *max); | |
33 | ||
7e8f2e9c JG |
34 | int loglevel_python_name_to_value( |
35 | const char *name, enum lttng_loglevel_python *loglevel); | |
36 | ||
949f049b SM |
37 | bool loglevel_python_parse_range_string(const char *str, |
38 | enum lttng_loglevel_python *min, | |
39 | enum lttng_loglevel_python *max); | |
40 | ||
85b05318 JR |
41 | const char *loglevel_value_to_name(int loglevel); |
42 | ||
85b05318 JR |
43 | const char *loglevel_log4j_value_to_name(int loglevel); |
44 | ||
85b05318 JR |
45 | const char *loglevel_jul_value_to_name(int loglevel); |
46 | ||
85b05318 JR |
47 | const char *loglevel_python_value_to_name(int loglevel); |
48 | ||
7e8f2e9c | 49 | #endif /* _LTTNG_LOGLEVEL_UTILS_H */ |