How to Install Spdlog?

How to Install Spdlog?

Install
  1. Ubuntu: apt-get install libspdlog-dev.
  2. Homebrew: brew install spdlog.
  3. FreeBSD: cd /usr/ports/devel/spdlog/ && make install clean.
  4. Fedora: yum install spdlog.
  5. Gentoo: emerge dev-libs/spdlog.
  6. Arch Linux: yaourt -S spdlog-git.
  7. vcpkg: vcpkg install spdlog.

Is Spdlog header only?

Very fast, header-only/compiled, C++ logging library.

What is Spdlog?

spdlog is a header only library. Just copy the files under include to your build tree and use a C++11 compiler. It provides a python like formatting API using the bundled fmt lib (see the reference): ... For example, if you only need rotating logger, you need to include "spdlog/sinks/rotating_file_sink. h".

Sophia Al-Mansoor
Author

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.