Fix: sessiond: agent: lazy creation of agent on removal
[lttng-tools.git] / src / bin / lttng / loglevel.h
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
11#include <lttng/lttng.h>
12#include <common/macros.h>
13
14LTTNG_HIDDEN
15int loglevel_name_to_value(const char *name, enum lttng_loglevel *loglevel);
16
17LTTNG_HIDDEN
18int loglevel_log4j_name_to_value(
19 const char *name, enum lttng_loglevel_log4j *loglevel);
20
21LTTNG_HIDDEN
22int loglevel_jul_name_to_value(
23 const char *name, enum lttng_loglevel_jul *loglevel);
24
25LTTNG_HIDDEN
26int loglevel_python_name_to_value(
27 const char *name, enum lttng_loglevel_python *loglevel);
28
85b05318
JR
29LTTNG_HIDDEN
30const char *loglevel_value_to_name(int loglevel);
31
32LTTNG_HIDDEN
33const char *loglevel_log4j_value_to_name(int loglevel);
34
35LTTNG_HIDDEN
36const char *loglevel_jul_value_to_name(int loglevel);
37
38LTTNG_HIDDEN
39const char *loglevel_python_value_to_name(int loglevel);
40
7e8f2e9c 41#endif /* _LTTNG_LOGLEVEL_UTILS_H */
This page took 0.026508 seconds and 4 git commands to generate.