xte ::logger {}
Defined in header <xte/io/logger.hpp> Logging utilities. Text is only colored when printing to a TTY.
Definition
namespace logger {template </* ??? */ >struct info {/* ??? */ };template </* ??? */ >struct debug {/* ??? */ };template </* ??? */ >struct warn {/* ??? */ };template </* ??? */ >struct error {/* ??? */ }; }
Example
Possible output:xte ::logger ::info ("Hello, world!" );xte ::logger ::debug ("Hello, world!" );xte ::logger ::warn ("Hello, world!" );xte ::logger ::error ("Hello, world!" );
[View in Compiler Explorer]INFO [1970-01-01 00:00:00] main.cpp:int main():416: Hello, world! DEBUG [1970-01-01 00:00:00] main.cpp:int:main():417: Hello, world! WARN [1970-01-01 00:00:00] main.cpp:int main():418: Hello, world! ERROR [1970-01-01 00:00:00] main.cpp:int main():419: Hello, world!