2 * Copyright (C) 2021 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: GPL-2.0-only
8 #ifndef _LTTNG_LOGLEVEL_UTILS_H
9 #define _LTTNG_LOGLEVEL_UTILS_H
11 #include <lttng/lttng.h>
12 #include <common/macros.h>
18 int loglevel_name_to_value(const char *name
, enum lttng_loglevel
*loglevel
);
20 bool loglevel_parse_range_string(const char *str
,
21 enum lttng_loglevel
*min
,
22 enum lttng_loglevel
*max
);
24 int loglevel_log4j_name_to_value(
25 const char *name
, enum lttng_loglevel_log4j
*loglevel
);
27 bool loglevel_log4j_parse_range_string(const char *str
,
28 enum lttng_loglevel_log4j
*min
,
29 enum lttng_loglevel_log4j
*max
);
31 int loglevel_jul_name_to_value(
32 const char *name
, enum lttng_loglevel_jul
*loglevel
);
34 bool loglevel_jul_parse_range_string(const char *str
,
35 enum lttng_loglevel_jul
*min
,
36 enum lttng_loglevel_jul
*max
);
38 int loglevel_python_name_to_value(
39 const char *name
, enum lttng_loglevel_python
*loglevel
);
41 bool loglevel_python_parse_range_string(const char *str
,
42 enum lttng_loglevel_python
*min
,
43 enum lttng_loglevel_python
*max
);
45 const char *loglevel_value_to_name(int loglevel
);
47 const char *loglevel_log4j_value_to_name(int loglevel
);
49 const char *loglevel_jul_value_to_name(int loglevel
);
51 const char *loglevel_python_value_to_name(int loglevel
);
57 #endif /* _LTTNG_LOGLEVEL_UTILS_H */
This page took 0.037859 seconds and 4 git commands to generate.