talira

Fast C++ logging library

open sourceMITself-hostablefree

spdlog is a very fast C++ logging library that you can use header-only or compiled (faster builds). It formats messages with the fmt library, logs synchronously or in an optional asynchronous mode, and has single- and multi-threaded loggers writing to sinks: rotating and daily files, colored console output, syslog, the Windows event log and debugger, Qt widgets, or your own. Log levels can change at runtime or be compiled out, load from argv or an environment variable, and a backtrace mode keeps debug messages in a ring buffer to show on demand. It runs on Linux, the BSDs, Windows, macOS and Android, is packaged by most Linux distributions, Homebrew, vcpkg and Conan, and is MIT licensed.

Problems it solves

  • add fast logging to a C++ application without slowing down hot paths
  • write C++ logs to rotating or daily log files
  • log asynchronously from many threads in C++
  • colored console logging in a C++ command line tool
  • change the log level of a C++ program at runtime or from an environment variable
  • a header-only C++ logging library that is easy to drop into a project
  • send C++ application logs to syslog or the Windows event log

Features

  • header-only or compiled
  • formatting with the fmt library, plus custom formatting
  • optional asynchronous mode
  • single- and multi-threaded loggers
  • sinks: rotating files, daily files, colored console, syslog, Windows event log, OutputDebugString, Qt widgets
  • custom sinks
  • log levels changeable at runtime and at compile time, loadable from argv or an environment variable
  • backtrace ring buffer of debug messages shown on demand

Capabilities

Takes pluginsplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what spdlog does.

  1. Quill Quill is a modern WYSIWYG editor built for compatibility and extensibility

Compare spdlog with the top 3