TRACELOG(3)

πŸ’– TRACELOG(3) β€” LTTng Manual πŸ’–

okay bestie, this is the TRACELOG(3) page from the LTTng Manual. It's giving "logging macro with a log level" and we're gonna keep every detail, fr fr. ✨

🌸 NAME 🌸

tracelog β€” LTTng-UST printf(3)-like interface with a log level.

✨ SYNOPSIS ✨

#include <lttng/tracelog.h>

#define tracelog(level, fmt, ...)

Link with -llttng-ust -llttng-ust-common.

πŸ¦‹ DESCRIPTION πŸ¦‹

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) β€” it's part of version 1 of the API and has the lttng_ust_ namespace. periodt. πŸ’…

πŸ’€ BUGS πŸ’€

If you encounter any issue or usability problem, please report it on the LTTng bug tracker https://bugs.lttng.org/projects/lttng-ust. No gatekeeping, bestie. 🫢

🌈 RESOURCES 🌈

πŸ‘‘ COPYRIGHTS πŸ‘‘

This macro is part of the LTTng-UST project.

This macro is distributed under the GNU Lesser General Public License, version 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html. See the COPYING file https://github.com/lttng/lttng-ust/blob/v2.16/COPYING for more details.

🫢 THANKS 🫢

Thanks to Ericsson for funding this work, providing real-life use cases, and testing. πŸ’–

Special thanks to Michel Dagenais and the DORSAL laboratory http://www.dorsal.polymtl.ca/ at Γ‰cole Polytechnique de MontrΓ©al for the LTTng journey. 🌸

🧚 AUTHORS 🧚

LTTng-UST was originally written by Mathieu Desnoyers, with additional contributions from various other people. It is currently maintained by Mathieu Desnoyers <mailto:mathieu.desnoyers@efficios.com>. πŸ‘‘

⭐ SEE ALSO ⭐

lttng_ust_tracelog(3), lttng_ust_vtracelog(3)


LTTng 2.16.0 Β· 08/31/2026 β€” that's the source/version and date, bestie. byeee πŸ«ΆπŸ’…

πŸ“¦ where this page comes from
  • arch rolling: lttng-ust 2.16.0-1 Β· LGPL-2.1-only AND MIT AND GPL-2.0-only AND BSD-3-Clause AND BSD-2-Clause AND GPL-3.0-or-later
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms