xte ::logger ::debug {}
Defined in header <xte/io/logger.hpp> Prints a message with a 'DEBUG' prefix. The object is intended to be discarded after construction. Text is colored only when printing to a TTY.
Definition
template <typename... Args >struct debug {explicit debug (std ::format_string <Args ...>,Args &&... )noexcept (false );explicit debug (std ::FILE * ,std ::format_string <Args ...>,Args &&... )noexcept (false ); };template <typename... Args >debug (std ::format_string <Args ...>,Args &&... ) ->debug <Args ...>;template <typename... Args >debug (std ::FILE * ,std ::format_string <Args ...>,Args &&... ) ->debug <Args ...>;
Example
Possible output:xte ::logger ::debug ("Hello, world!" );
DEBUG [2026-04-13 20:10:32] main.cpp:int:main():4: Hello, world!
[View in Compiler Explorer]