Remove legacy printf_verbose()/printf_debug() and others
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 14 Jun 2017 20:30:31 +0000 (16:30 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 14 Jun 2017 22:09:41 +0000 (18:09 -0400)
commitf4f9e43bbbee319f55c55c86c931205ac8b573e7
treec98180060c62dc46b191d413ee5476b63d0f0c81
parent4adc5a41399d7a7099d40e55662282108dde13a7
Remove legacy printf_verbose()/printf_debug() and others

This patch removes all the legacy logging macros found in
babeltrace-internal.h. It also removes the babeltrace_verbose and
babeltrace_debug symbols.

To remain as backward compatible as possible, the CLI checks the
BABELTRACE_VERBOSE and BABELTRACE_DEBUG environment variables and
overrides the default log level (WARN, or the one set with --log-level)
with VERBOSE if BABELTRACE_DEBUG is 1 and INFO if only
BABELTRACE_VERBOSE is 1. This default log level applies to all the known
loggers, except the ones that have their log level explicitly set with a
dedicated environment variable.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
20 files changed:
cli/babeltrace-cfg-cli-args.c
cli/babeltrace.c
common/Makefile.am
common/common.c
common/logging.c [new file with mode: 0644]
common/logging.h [new file with mode: 0644]
include/babeltrace/babeltrace-internal.h
lib/babeltrace.c
plugins/lttng-utils/Makefile.am
plugins/lttng-utils/bin-info.c
plugins/lttng-utils/debug-info.c
plugins/lttng-utils/logging.c [new file with mode: 0644]
plugins/lttng-utils/logging.h [new file with mode: 0644]
plugins/lttng-utils/plugin.c
plugins/text/Makefile.am
plugins/utils/trimmer/Makefile.am
plugins/utils/trimmer/iterator.c
plugins/utils/trimmer/logging.c [new file with mode: 0644]
plugins/utils/trimmer/logging.h [new file with mode: 0644]
plugins/utils/trimmer/trimmer.c
This page took 0.028206 seconds and 4 git commands to generate.