| 1 | /* |
| 2 | * Copyright (C) 2020 Simon Marchi <simon.marchi@efficios.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: LGPL-2.1-only |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #include "common/macros.hpp" |
| 9 | #include "lttng/domain-internal.hpp" |
| 10 | |
| 11 | const char *lttng_domain_type_str(enum lttng_domain_type domain_type) |
| 12 | { |
| 13 | switch (domain_type) { |
| 14 | case LTTNG_DOMAIN_NONE: |
| 15 | return "none"; |
| 16 | case LTTNG_DOMAIN_KERNEL: |
| 17 | return "kernel"; |
| 18 | case LTTNG_DOMAIN_UST: |
| 19 | return "user space"; |
| 20 | case LTTNG_DOMAIN_JUL: |
| 21 | return "java.util.logging (JUL)"; |
| 22 | case LTTNG_DOMAIN_LOG4J: |
| 23 | return "log4j"; |
| 24 | case LTTNG_DOMAIN_LOG4J2: |
| 25 | return "log4j2"; |
| 26 | case LTTNG_DOMAIN_PYTHON: |
| 27 | return "Python logging"; |
| 28 | default: |
| 29 | return "???"; |
| 30 | } |
| 31 | } |