spdlog/1.13.0

Fast C++ logging library
Recipe info
2024-01-19

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
spdlog/1.13.0

Using spdlog

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
spdlog/1.13.0
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("spdlog/1.13.0")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): spdlog
  • CMake target name(s): spdlog::spdlog
  • libspdlog => spdlog::spdlog
    
  • pkg-config file name(s): spdlog.pc
  • libspdlog => spdlog-libspdlog.pc
    

A simple use case using the CMake file name and the global target:

# ...
find_package(spdlog REQUIRED)
# ...
target_link_libraries(YOUR_TARGET spdlog::spdlog)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the spdlog homepage listed above:

#include "spdlog/async.h"
#include "spdlog/async_logger-inl.h"
#include "spdlog/async_logger.h"
#include "spdlog/cfg/argv.h"
#include "spdlog/cfg/env.h"
#include "spdlog/cfg/helpers-inl.h"
#include "spdlog/cfg/helpers.h"
#include "spdlog/common-inl.h"
#include "spdlog/common.h"
#include "spdlog/details/backtracer-inl.h"
#include "spdlog/details/backtracer.h"
#include "spdlog/details/circular_q.h"
#include "spdlog/details/console_globals.h"
#include "spdlog/details/file_helper-inl.h"
#include "spdlog/details/file_helper.h"
#include "spdlog/details/fmt_helper.h"
#include "spdlog/details/log_msg-inl.h"
#include "spdlog/details/log_msg.h"
#include "spdlog/details/log_msg_buffer-inl.h"
#include "spdlog/details/log_msg_buffer.h"
#include "spdlog/details/mpmc_blocking_q.h"
#include "spdlog/details/null_mutex.h"
#include "spdlog/details/os-inl.h"
#include "spdlog/details/os.h"
#include "spdlog/details/periodic_worker-inl.h"
#include "spdlog/details/periodic_worker.h"
#include "spdlog/details/registry-inl.h"
#include "spdlog/details/registry.h"
#include "spdlog/details/synchronous_factory.h"
#include "spdlog/details/tcp_client-windows.h"
#include "spdlog/details/tcp_client.h"
#include "spdlog/details/thread_pool-inl.h"
#include "spdlog/details/thread_pool.h"
#include "spdlog/details/udp_client-windows.h"
#include "spdlog/details/udp_client.h"
#include "spdlog/details/windows_include.h"
#include "spdlog/fmt/bin_to_hex.h"
#include "spdlog/fmt/chrono.h"
#include "spdlog/fmt/compile.h"
#include "spdlog/fmt/fmt.h"
#include "spdlog/fmt/ostr.h"
#include "spdlog/fmt/ranges.h"
#include "spdlog/fmt/std.h"
#include "spdlog/fmt/xchar.h"
#include "spdlog/formatter.h"
#include "spdlog/fwd.h"
#include "spdlog/logger-inl.h"
#include "spdlog/logger.h"
#include "spdlog/pattern_formatter-inl.h"
#include "spdlog/pattern_formatter.h"
#include "spdlog/sinks/android_sink.h"
#include "spdlog/sinks/ansicolor_sink-inl.h"
#include "spdlog/sinks/ansicolor_sink.h"
#include "spdlog/sinks/base_sink-inl.h"
#include "spdlog/sinks/base_sink.h"
#include "spdlog/sinks/basic_file_sink-inl.h"
#include "spdlog/sinks/basic_file_sink.h"
#include "spdlog/sinks/callback_sink.h"
#include "spdlog/sinks/daily_file_sink.h"
#include "spdlog/sinks/dist_sink.h"
#include "spdlog/sinks/dup_filter_sink.h"
#include "spdlog/sinks/hourly_file_sink.h"
#include "spdlog/sinks/kafka_sink.h"
#include "spdlog/sinks/mongo_sink.h"
#include "spdlog/sinks/msvc_sink.h"
#include "spdlog/sinks/null_sink.h"
#include "spdlog/sinks/ostream_sink.h"
#include "spdlog/sinks/qt_sinks.h"
#include "spdlog/sinks/ringbuffer_sink.h"
#include "spdlog/sinks/rotating_file_sink-inl.h"
#include "spdlog/sinks/rotating_file_sink.h"
#include "spdlog/sinks/sink-inl.h"
#include "spdlog/sinks/sink.h"
#include "spdlog/sinks/stdout_color_sinks-inl.h"
#include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/sinks/stdout_sinks-inl.h"
#include "spdlog/sinks/stdout_sinks.h"
#include "spdlog/sinks/syslog_sink.h"
#include "spdlog/sinks/systemd_sink.h"
#include "spdlog/sinks/tcp_sink.h"
#include "spdlog/sinks/udp_sink.h"
#include "spdlog/sinks/win_eventlog_sink.h"
#include "spdlog/sinks/wincolor_sink-inl.h"
#include "spdlog/sinks/wincolor_sink.h"
#include "spdlog/spdlog-inl.h"
#include "spdlog/spdlog.h"
#include "spdlog/stopwatch.h"
#include "spdlog/tweakme.h"
#include "spdlog/version.h"