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 int loglevel_log4j_name_to_value(
19 const char *name
, enum lttng_loglevel_log4j
*loglevel
);
22 int loglevel_jul_name_to_value(
23 const char *name
, enum lttng_loglevel_jul
*loglevel
);
26 int loglevel_python_name_to_value(
27 const char *name
, enum lttng_loglevel_python
*loglevel
);
30 const char *loglevel_value_to_name(int loglevel
);
33 const char *loglevel_log4j_value_to_name(int loglevel
);
36 const char *loglevel_jul_value_to_name(int loglevel
);
39 const char *loglevel_python_value_to_name(int loglevel
);
41 #endif /* _LTTNG_LOGLEVEL_UTILS_H */
This page took 0.030273 seconds and 5 git commands to generate.