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:05:54 +0000 (18:05 -0400)
commitb4565e8b2e0f7c0e356919fe95b760bed7a71d1b
treeb2bc9289de39b61407ec13f3f542d463906a59c3
parent56b43721cde738dace9fc445bcf388e944686cbc
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.025711 seconds and 4 git commands to generate.