xte::logger::info {}

Defined in header <xte/io/logger.hpp>

Prints a message with an 'INFO' prefix. The object is intended to be discarded after construction.


Definition

template<typename... Args>
struct info {
	explicit info(std::format_string<Args...>, Args&&...) noexcept(false);

	explicit info(std::FILE*, std::format_string<Args...>, Args&&...) noexcept(false);
};

template<typename... Args>
info(std::format_string<Args...>, Args&&...) -> info<Args...>;

template<typename... Args>
info(std::FILE*, std::format_string<Args...>, Args&&...) -> info<Args...>;



Example

xte::logger::info("Hello, world!");
Possible output:
INFO  [2026-04-13 20:04:35] main.cpp:int main():4: Hello, world!
[View in Compiler Explorer]