lttng: start: ensure a cmd_error_code is returned by the command
[lttng-tools.git] / src / bin / lttng / loglevel.hpp
CommitLineData
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
c9e313bc 11#include <common/macros.hpp>
7e8f2e9c 12
28f23191
JG
13#include <lttng/lttng.h>
14
7e8f2e9c
JG
15int loglevel_name_to_value(const char *name, enum lttng_loglevel *loglevel);
16
949f049b 17bool loglevel_parse_range_string(const char *str,
28f23191
JG
18 enum lttng_loglevel *min,
19 enum lttng_loglevel *max);
949f049b 20
28f23191 21int loglevel_log4j_name_to_value(const char *name, enum lttng_loglevel_log4j *loglevel);
7e8f2e9c 22
949f049b 23bool loglevel_log4j_parse_range_string(const char *str,
28f23191
JG
24 enum lttng_loglevel_log4j *min,
25 enum lttng_loglevel_log4j *max);
949f049b 26
28f23191 27int loglevel_jul_name_to_value(const char *name, enum lttng_loglevel_jul *loglevel);
7e8f2e9c 28
949f049b 29bool loglevel_jul_parse_range_string(const char *str,
28f23191
JG
30 enum lttng_loglevel_jul *min,
31 enum lttng_loglevel_jul *max);
949f049b 32
28f23191 33int loglevel_python_name_to_value(const char *name, enum lttng_loglevel_python *loglevel);
7e8f2e9c 34
949f049b 35bool loglevel_python_parse_range_string(const char *str,
28f23191
JG
36 enum lttng_loglevel_python *min,
37 enum lttng_loglevel_python *max);
949f049b 38
85b05318
JR
39const char *loglevel_value_to_name(int loglevel);
40
85b05318
JR
41const char *loglevel_log4j_value_to_name(int loglevel);
42
85b05318
JR
43const char *loglevel_jul_value_to_name(int loglevel);
44
85b05318
JR
45const char *loglevel_python_value_to_name(int loglevel);
46
7e8f2e9c 47#endif /* _LTTNG_LOGLEVEL_UTILS_H */
This page took 0.084192 seconds and 4 git commands to generate.