tracelog — LTTng-UST printf(3)-like interface with a log level
#include <lttng/tracelog.h>
#define tracelog(level, fmt, …)
Link with -llttng-ust -llttng-ust-common.
The tracelog() macro is part of version 0 of the LTTng-UST API
(see the “Compatibility with previous APIs” section of
lttng-ust(3)).
Prefer using lttng_ust_tracelog(3) which is part of version 1
of the API and has the lttng_ust_ namespace.
If you encounter any issue or usability problem, please report it on the LTTng bug tracker.
Mailing list for support and
  development: lttng-dev@lists.lttng.org
IRC channel: #lttng on irc.oftc.net
This macro is part of the LTTng-UST project.
This macro is distributed under the
GNU Lesser
General Public License, version 2.1. See the
COPYING file
for more details.
Thanks to Ericsson for funding this work, providing real-life use cases, and testing.
Special thanks to Michel Dagenais and the DORSAL laboratory at École Polytechnique de Montréal for the LTTng journey.