Skip to content

fmt / spdlog Source-Level Deep Analysis

Source path: references/impl/fmt/include/fmt/, references/impl/spdlog/include/spdlog/

fmt is the de facto standard C++ formatting library, directly adopted by the C++20 standard as std::format. spdlog is the most popular logging library, built on top of fmt.

Table of Contents

ChapterSource PathContent
fmt Formatting Enginebase.h, format.hCompile-time format string checking, type-erased tagged union, Dragonbox floating-point
fmt Advanced Featureschrono.h, ranges.h, compile.hCustom types, compile-time formatting, chrono, ranges
spdlog Architecturespdlog.h, logger.h, sinks/Logger/Sink/Formatter, async mode, log level pruning

Released under the MIT License