AL_REGISTER_TRACE_HANDLER(3)
π NAME π
Hey bestie, welcome to al_register_trace_handler(3) from the Library Functions Manual β you're in the Allegro reference manual now, and this is the Allegro 5 API page for registering a trace handler π
β¨
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
void al_register_trace_handler(void (*handler)(char const *))
π DESCRIPTION π
Okay so here's the whole vibe: you're registering a callback, and Allegro calls that callback whenever it writes something to its log files. Very βyour logging setup has main character energyβ π.
The default logging to allegro.log is disabled while this callback is active. So while your callback is doing its thing, the usual default file logging is off β periodt.
Pass NULL to revert to the default logging. Yep, just NULL, and Allegro goes back to its default-logging era π«Ά.
This function may be called prior to al_install_system β yes, you can set it up before system install, no cap.
See the example allegro5.cfg for documentation on how to configure the used debug channels, logging levels and trace format. That's your cheat sheet for the debug-channel / logging-level / trace-format situation, iykyk π¦.
β SINCE β
5.1.5 β iconic since this version, bestie π.
And that's the sparkly sign-off: Allegro reference manual out here representing al_register_trace_handler(3), with no date printed on this page β the vibes are timeless, fr fr πβ¨
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms