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>
15 int loglevel_name_to_value(const char *name
, enum lttng_loglevel
*loglevel
);
18 bool loglevel_parse_range_string(const char *str
,
19 enum lttng_loglevel
*min
,
20 enum lttng_loglevel
*max
);
23 int loglevel_log4j_name_to_value(
24 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
);
32 int loglevel_jul_name_to_value(
33 const char *name
, enum lttng_loglevel_jul
*loglevel
);
36 bool loglevel_jul_parse_range_string(const char *str
,
37 enum lttng_loglevel_jul
*min
,
38 enum lttng_loglevel_jul
*max
);
41 int loglevel_python_name_to_value(
42 const char *name
, enum lttng_loglevel_python
*loglevel
);
45 bool loglevel_python_parse_range_string(const char *str
,
46 enum lttng_loglevel_python
*min
,
47 enum lttng_loglevel_python
*max
);
50 const char *loglevel_value_to_name(int loglevel
);
53 const char *loglevel_log4j_value_to_name(int loglevel
);
56 const char *loglevel_jul_value_to_name(int loglevel
);
59 const char *loglevel_python_value_to_name(int loglevel
);
61 #endif /* _LTTNG_LOGLEVEL_UTILS_H */
This page took 0.042294 seconds and 4 git commands to generate.