gtopt/log_format.hpp file

Centralised INFO-log number formatting helpers.

One source of truth for how monetary magnitudes, durations, percentages and counters render across every INFO-level log line. Replaces ad-hoc {:.4f} / {:.2f}% / mixed-suffix usage that historically made tail -f output hard to scan.

Each helper returns a small aggregate that has a std::formatter specialisation, so the string is materialised lazily inside std::format / spdlog only when the level filter admits the line.

Namespaces

namespace gtopt
namespace gtopt::log

Classes

struct gtopt::log::FormatDur
struct gtopt::log::FormatPct
template<class CharT>
struct std::formatter<gtopt::log::FormatDur, CharT>
template<class CharT>
struct std::formatter<gtopt::log::FormatPct, CharT>