quill
Skill3.1k starsChanged 22 months agoMITView on GitHub
Quill v14 (odygrd/quill), the asynchronous C++ logging library: write, review and fix code that uses it, and migrate, convert or port a codebase to Quill from spdlog, glog, fmtlog, Boost.Log, NanoLog, printf or iostream logging. Use for quill/ includes, quill::Backend, quill::Frontend, quill::Logger, the LOG_INFO / LOG_DEBUG / LOG_ERROR / LOGV_ / LOGJ_ / LOG_BINARY macros, quill::info(), adding logging to C++ code that uses or should use Quill, sinks, file rotation, JSON logs, patterns, log levels, FrontendOptions queues, BackendOptions, logging STL or user-defined types (codecs), "Missing Codec for Type" and other Quill build errors, missing log output, and code written for an older Quill (quill::start, quill::get_logger, quill::Config, handlers).
8 other projects use a version of this.
Trending
Quiet since October.about the whole repository
Most recently taken up by
- bekhruztbx/ai-creative-teamtheir own version, first seen Oct 25, 2026
- simota/agent-skillstheir own version, first seen Oct 23, 2026
- cgartlab/quilltheir own version, first seen Oct 20, 2026
- codingpains/skillstheir own version, first seen Oct 20, 2026
- iamsikun/quilltheir own version, first seen Oct 11, 2026
- cwinvestments/memstacktheir own version, first seen Jun 22, 2026
Who's talking about odygrd/quill
- ClickHouse/ClickHouse“Integration with `quill` logging library”GitHub · Mar 4, 2025 · 5 reactions
- dtcxzyw/llvm-opt-benchmark“Wishlist for new benchmarks”GitHub · Jan 17, 2024 · 5 reactions
- A Hacker News story“Quill – C++14 Low Latency Logging Library – v1.4.0 released”Hacker News · Aug 16, 2020 · 5 points
- A Hacker News story“Quill: Asynchronous Low Latency C++ Logging Library”Hacker News · Sep 14, 2025 · 4 points
- conan-io/conan-center-index“quill: add version 12.1.0”GitHub · Jul 16, 2026 · 1 reactions
The biggest 5 of 56 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 56
Talked about on GitHub, Hacker News and Stack Overflow (56 times).
On GitHub · 50
- Mar 4, 2025Integration with `quill` logging library — ClickHouse/ClickHouse5 reactions · 9 comments
- Jan 17, 2024Wishlist for new benchmarks — dtcxzyw/llvm-opt-benchmarksays it tested it5 reactions · 15 comments
- Jul 16, 2026quill: add version 12.1.0 — conan-io/conan-center-index1 reaction · 2 comments
- Mar 8, 2026quill: add version 11.1.0 — conan-io/conan-center-index1 reaction · 2 comments
- Nov 2, 2025quill-log: 10.1.0 -> 10.2.0 — NixOS/nixpkgs1 reaction
45 more on GitHub
- Sep 7, 2025[quill] Update to 10.1.0 — microsoft/vcpkg1 reaction
- Jun 16, 2025quill: add version 10.0.1 — conan-io/conan-center-index1 reaction · 3 comments
- May 23, 2025quill-log: 9.0.2 -> 9.0.3 — NixOS/nixpkgs1 reaction
- Apr 13, 2025quill-log: 9.0.0 -> 9.0.1 — NixOS/nixpkgs1 reaction
- Apr 3, 2025quill: add version 9.0.2 — conan-io/conan-center-index1 reaction · 5 comments
- Apr 2, 2025quill-log: 8.2.0 -> 9.0.0 — NixOS/nixpkgs1 reaction · 1 comment
- Feb 27, 2025quill-log: 8.1.1 -> 8.2.0 — NixOS/nixpkgs1 reaction · 1 comment
- Feb 24, 2025[quill] Update to 8.2.0 — microsoft/vcpkg1 reaction
- Feb 13, 2025quill-log: 8.1.0 -> 8.1.1 — NixOS/nixpkgs1 reaction · 1 comment
- Jan 28, 2025[quill] Update to 8.1.0 — microsoft/vcpkg1 reaction
- Jan 17, 2025quill-log: 7.5.0 -> 8.0.0 — NixOS/nixpkgs1 reaction · 1 comment
- Nov 16, 2024quill-log: 7.3.0 -> 7.5.0 — NixOS/nixpkgs1 reaction · 2 comments
- Oct 5, 2024quill-log: 7.2.2 -> 7.3.0 — NixOS/nixpkgs1 reaction
- Sep 28, 2024quill-log: 7.1.0 -> 7.2.2 — NixOS/nixpkgs1 reaction
- Sep 5, 2024quill: add version 7.1.0 — conan-io/conan-center-index1 reaction · 3 comments
- Aug 16, 2024quill-log: 6.1.0 -> 6.1.2 — NixOS/nixpkgs1 reaction · 1 comment
- Jul 13, 2024quill: add version 6.0.0 — conan-io/conan-center-index1 reaction · 11 comments
- Apr 25, 2024quill-cpp: init at 3.8.0 — NixOS/nixpkgs1 reaction · 1 comment
- Sep 21, 2023quillcpp: init at 3.3.1 — NixOS/nixpkgs1 reaction · 1 comment
- Aug 22, 2023Homebrew Formula — anchore/quill1 reaction · 3 comments
- Jan 9, 2023[quill] Update to 2.6.0 — microsoft/vcpkg1 reaction
- May 29, 2021Add a `Logger` to EKAT — E3SM-Project/EKAT1 reaction · 72 comments
- Oct 24, 2026quill: add version 13.1.0 — conan-io/conan-center-index0 reactions · 1 comment
- Oct 23, 2026chore: append odygrd:quill 13.1.0 — mcpplibs/mcpp-index0 reactions
- Oct 17, 2026[quill] Update to 13.1.0 — microsoft/vcpkg0 reactions
- Oct 17, 2026quill-log: 13.0.0 -> 13.1.0 — NixOS/nixpkgs0 reactions · 2 comments
- Oct 17, 2026quill 13.1.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Sep 7, 2026Provide formatter for Quill — ZXShady/enchantum0 reactions · 2 comments
- Sep 2, 2026quill-log: 12.2.0 -> 13.0.0 — NixOS/nixpkgs0 reactions · 2 comments
- Aug 30, 2026[quill] Update to 13.0.0 — microsoft/vcpkg0 reactions
- Aug 30, 2026quill: add version 13.0.0 — conan-io/conan-center-index0 reactions
- Aug 30, 2026quill 13.0.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 28, 2026[quill] Update to 12.2.2 — microsoft/vcpkg0 reactions
- Aug 26, 2026package(quill): onboard 12.1.0 — yinjiayi/openeuler-riscv-packages0 reactions
- Aug 24, 2026quill 12.2.2 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 24, 2026quill 12.2.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 23, 2026quill 12.2.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 23, 2026quill-log: 12.1.0 -> 12.2.0 — NixOS/nixpkgs0 reactions · 2 comments
- Jul 17, 2026[quill] Update to 12.1.0 — microsoft/vcpkg0 reactions
- Jul 15, 2026quill-log: 12.0.0 -> 12.1.0 — NixOS/nixpkgs0 reactions · 2 comments
- Jun 19, 2026quill: add version 12.0.0 — conan-io/conan-center-index0 reactions
- Jun 13, 2026quill-log: 11.1.0 -> 12.0.0 — NixOS/nixpkgs0 reactions
- Apr 24, 2026Quill (which bundle libfmt) fail to build with CUDA when `using namespace std` is used in the code — fmtlib/fmt0 reactions · 1 comment
- Mar 24, 2026Faster logging — rdong8/monorepo0 reactions · 1 comment
- Nov 14, 2025operator|| ambiguity conflict with boost::sml on older GCC when `FMT_HEADER_ONLY` is used — fmtlib/fmt0 reactions · 3 comments
On Hacker News · 4
- Aug 16, 2020Quill – C++14 Low Latency Logging Library – v1.4.0 released5 points · 1 comment
- Sep 14, 2025Quill: Asynchronous Low Latency C++ Logging Library4 points · 1 comment
- Jun 3, 2024Quill Low Latency Logging Library C++171 point · 1 comment
- Mar 4, 2020Quill – Asynchronous Low Latency Logging Library (C++14)1 point
On Stack Overflow · 2
- Oct 12, 2022Using the quill logging system with eclipse and getting false errors (undefined symbol)1 vote
- Nov 8, 2023Asynchronous thread-safe logging in C++0 votes
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- cwinvestments/memstack★ 433same name
- simota/agent-skills★ 106same name
- bekhruztbx/ai-creative-team★ 18same name
- cgartlab/quill★ 2same name
- codingpains/skills★ 1same name
- gc4rella/quill★ 1same name
- iamsikun/quill★ 1same name
- vbrevik/claude_code_skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Search the project for Backend::start first and reuse its setup library, loggers, macros and FrontendImpl<...> aliases.
- Very specific: line 165
Every binary, tests included, links the setup library, whose sources include quill/Backend.h: otherwise …
- Very specific: line 167
Create sinks and loggers once at startup and keep the quill::Logger*.
- Distinctive: line 177
Never log inside a formatter, a codec, a copy constructor used by a codec, or a user clock.
- Very specific: line 187
Do not log from destructors of static or global objects.
- Very specific: line 196
After a change, run once and read stderr: Quill reports invalid patterns, format errors, dropped records and queue growth there.
- Distinctive: line 219
Read the one file that matches the task.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Quill v14
Header-only asynchronous C++17 logging: a log call copies its arguments into the calling thread's
lock-free queue, and one backend thread formats and writes them. Namespace quill; the bundled
{fmt} is fmtquill.
Do not write Quill from memory. The API changed in v4, v7, v10 and v14, and models recall the
old forms (quill::start(), quill::get_logger(), handlers). Use the forms below. A project that
pins an older release (GIT_TAG, vcpkg.json, Conan) or whose QUILL_VERSION_MAJOR is missing or
below 14 uses an older Quill: read references/stale-api.md and keep its
version unless asked to upgrade.
Setup
Search the project for Backend::start first and reuse its setup library, loggers, macros and
FrontendImpl<...> aliases. New setup code in a project with more than one .cpp follows these
two rules; name and arrange the files to fit the project. When existing code breaks them, recommend
the change and why (compile time, one place to configure), and restructure only if the user agrees:
- A small static library owns the setup, linked into the executables and tests. Its sources
are the only files that include
quill/Backend.h,quill/Frontend.handquill/sinks/*.h, the slow headers to compile. Static keeps one copy of Quill's state, and on Linux a log call in an executable needs no TLS lookup, which a call compiled into a shared library has: recommend it also where the project uses shared libraries. Only when the user asks or the project requires it, build the setup library as the one shared library that owns Quill: references/setup.md. Never link the static one into several shared modules. - Files that log include the project's logging header and the
quill/std/headers of the STL types they log. The logging header includes onlyquill/Logger.handquill/LogMacros.h(quill/LogFunctions.hforquill::info()). Never put the setup headers in a header.
One way, when the project has no setup yet:
// file: app_log.h
#pragma once
#include "quill/LogMacros.h"
#include "quill/Logger.h"
namespace app
{
void init_logging(char const* log_file); // call once, first thing in main()
extern quill::Logger* logger; // valid after init_logging()
} // namespace app// file: app_log.cpp
#include "app_log.h"
#include "quill/Backend.h"
#include "quill/Frontend.h"
#include "quill/sinks/ConsoleSink.h"
#include "quill/sinks/FileSink.h"
namespace app
{
quill::Logger* logger{nullptr};
void init_logging(char const* log_file)
{
quill::Backend::start(); // once per process; a normal exit stops it and writes what is queued
auto console = quill::Frontend::create_or_get_sink<quill::ConsoleSink>("console");
auto file = quill::Frontend::create_or_get_sink<quill::FileSink>(log_file); // appends
logger = quill::Frontend::create_or_get_logger(
"app", {console, file},
quill::PatternFormatterOptions{
"%(time) [%(thread_id)] %(short_source_location:<28) %(log_level:<9) %(logger:<12) %(message)%(mdc)",
"%Y-%m-%d %H:%M:%S.%Qus", quill::Timezone::GmtTime});
}
} // namespace app// file: main.cpp
#include "app_log.h"
int main()
{
app::init_logging("app.log");
LOG_INFO(app::logger, "Listening on port {}", 8080);
}add_library(app_log STATIC app_log.cpp)
target_compile_features(app_log PUBLIC cxx_std_17)
target_include_directories(app_log PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(app_log PUBLIC quill::quill)
target_link_libraries(app PRIVATE app_log) # every target that logs- A program of one
.cpp: put the body ofinit_logging()at the top ofmain(). - Throwaway program:
quill/SimpleSetup.handquill/LogMacros.h, thenquill::simple_logger()(stdout),simple_logger("stderr")orsimple_logger("app.log"), which starts the backend. - Build: CMake target
quill::quill, or-std=c++17 -I<quill>/include -pthread; MSVC/std:c++17 /EHsc /I<quill>\include.
Log statements
<LEVEL> is TRACE_L3 (most verbose), TRACE_L2, TRACE_L1, DEBUG, INFO, NOTICE,
WARNING, ERROR or CRITICAL. A logger starts at Info:
logger->set_log_level(quill::LogLevel::Debug).
| Statement | Result |
LOG_INFO(logger, "order {} px {:.2f}", id, px); | {fmt} syntax, formatted on the backend thread |
LOGV_INFO(logger, "fill", id, px); | fill [id: 7, px: 1.5] |
LOGJ_INFO(logger, "fill", id, px); | fields id and px in JSON sinks, fill 7, 1.5 as text |
LOG_WARNING_LIMIT(std::chrono::seconds{1}, logger, "slow {}", ms); | at most once per interval, per call site and thread |
LOG_DEBUG_LIMIT_EVERY_N(100, logger, "tick {}", n); | every 100th call |
LOG_INFO_TAGS(logger, TAGS("net"), "connected"); | tags, printed by %(tags) |
LOG_DYNAMIC(logger, level, "text {}", x); | level is a run-time quill::LogLevel |
quill::info(logger, "text {}", x); | no macro (quill/LogFunctions.h); arguments are evaluated even when the level is off |
Arguments
| Type | Needs |
Arithmetic, bool, char, std::string, std::string_view, char const*, char[N], void const* | nothing; the call copies strings, so temporaries are safe |
| Enum | format_as(E) in the enum's namespace, or a cast at the call |
std::vector, std::map, std::optional, std::chrono types and other STL types | #include "quill/std/<Type>.h" for each type in the nesting (Vector.h, Map.h, Optional.h, Pair.h, Chrono.h, ...) |
| Your type that owns its data | fmtquill::formatter<T> or format_as(T), plus template <> struct quill::Codec<T> : quill::DeferredFormatCodec<T> {}; (quill/DeferredFormatCodec.h) |
Your type with pointer, reference or std::string_view members | the same with quill::DirectFormatCodec<T> (quill/DirectFormatCodec.h), which formats on the calling thread. A DeferredFormatCodec copies the object and the backend formats the copy later, when such members dangle |
Your type with only operator<< | QUILL_LOGGABLE_DEFERRED_FORMAT(T) or QUILL_LOGGABLE_DIRECT_FORMAT(T) (quill/HelperMacros.h) |
T*, smart pointers, std::thread::id, exceptions | not loggable: pass static_cast<void const*>(p), *p, e.what() |
Decisions
| Decision | Default | Change it when |
| Full queue | grows from 128 KiB per thread to 2 GiB, then blocks | a log call must never block (BoundedDropping), or memory must stay fixed (BoundedBlocking) |
| Backend thread | sleeps 500 us when idle (10 ms on Android; on Windows until the timer tick, ~15.6 ms), not pinned | shorter delay to the sinks: sleep_duration = 0 and cpu_affinity |
| Flushing | when the backend is idle, at most every 200 ms | the output is read right after: logger->flush_log() |
| Crashes | queued records are lost | start the backend with quill::SignalHandlerOptions |
| Clock | TSC | exact wall time, tests, simulated time |
| Loggers | one | a level, name or file per subsystem |
| Unused levels | checked at run time | compile them out: QUILL_COMPILE_ACTIVE_LOG_LEVEL |
Details: the first five in references/runtime.md, the last two in setup.md.
Rules
- Nothing is written until
quill::Backend::start()runs. One call per process. - Every binary, tests included, links the setup library, whose sources include
quill/Backend.h: otherwisequill::v14::detail::get_scoped_thread_context_implis undefined (MSVCLNK2019). - Create sinks and loggers once at startup and keep the
quill::Logger*.create_or_get_loggerandcreate_or_get_sinkreturn an existing name unchanged, ignoring the new arguments (with RTTI, a sink type the existing sink does not derive from throws). A logger's sinks, pattern and clock never change:Frontend::remove_logger_blocking(logger)while the backend runs, then create it again. - The macros do not check the logger: a null or removed
Logger*crashes. - Format strings are literals with
{}.%dis printed as it is. They are checked on the backend, not by the compiler: a mismatch prints[Could not format log statement ...]at run time. Missing Codec for Typemeans the argument needs a row of the Arguments table;type_is_unformattable_formeans its formatter orformat_asis missing.- Never log inside a formatter, a codec, a copy constructor used by a codec, or a user clock. A
staticwith a destructor that a sink or formatter uses must exist beforeBackend::start(): the drain at exit runs after the destructors of statics constructed later, and on Windows one first initialised during that drain hangs the exit. - One
FrontendOptionstype per program. Custom options derive fromquill::FrontendOptions; files that log then usequill::LoggerImpl<Options>, and only the setup sourcesquill::FrontendImpl<Options>, which needsquill/Frontend.h. flush_log()andremove_logger_blocking()wait for the backend. Called with no backend running they return at once, the removal only requested. Never call them from a sink, filter,error_notifieror the thread that polls aManualBackendWorker: they throw, or hang.- Do not log from destructors of static or global objects. With
fork(), start the backend after the fork, in each process. - A pattern is checked on the backend. An unknown or repeated attribute only prints
Invalid format patternto stderr, and that logger then writes nothing. - In a message with a string,
charor user-type argument, bytes outside printable ASCII, tab, CR and LF print as\xNNunlessbackend_options.check_printable_char = {}. <syslog.h>and other libraries defineLOG_INFO,LOG_DEBUG,LOG_WARNING. In such files defineQUILL_DISABLE_NON_PREFIXED_MACROSand writeQUILL_LOG_INFO(...).- On a hot path use the macros, pass values, not pre-formatted strings, and never call
flush_log(). - After a change, run once and read stderr: Quill reports invalid patterns, format errors, dropped records and queue growth there.
Old forms that do not compile in v14
| Do not write | Write |
#include "quill/Quill.h" | the logging header of the setup above |
quill::start() | quill::Backend::start() |
quill::Config, quill::configure(cfg) | quill::BackendOptions passed to Backend::start() |
quill::get_logger(), quill::create_logger() | quill::Frontend::create_or_get_logger("name", sink); there is no root logger |
quill::stdout_handler(), quill::file_handler(), Handler | Frontend::create_or_get_sink<quill::ConsoleSink>("id"), <quill::FileSink>("path") |
handler->set_pattern(...) | quill::PatternFormatterOptions{...} when creating the logger |
quill::flush() | logger->flush_log() |
Backend::start_with_signal_handler<...>() | Backend::start<quill::FrontendOptions>(options, quill::SignalHandlerOptions{}) |
a quill::ClockSourceType or &clock argument | quill::ClockSource::system(), quill::ClockSource::custom(clock) |
write_log(MacroMetadata const*, uint64_t, ...) in a sink | write_log(quill::LogRecord const& record) |
LOG_WARN, LOG_TRACE, LOG_FATAL, LOG_INFO_WITH_TAGS, LOG_INFO_CFORMAT | LOG_WARNING, LOG_TRACE_L1, LOG_CRITICAL, LOG_INFO_TAGS, LOG_INFO with {} |
fmt::formatter<T> or std::formatter<T> for a logged type | fmtquill::formatter<T> |
quill::loglevel_from_string | quill::log_level_from_string |
References
Read the one file that matches the task.
| File | Read it when |
| setup.md | adding Quill to a build, the setup library's details, several loggers, compile definitions, the C++20 module, shared libraries and DLLs, Windows and MSVC |
| types.md | an argument is an STL type, an enum or a class, or a codec or formatter error appears |
| output.md | choosing or configuring sinks, rotation, JSON, filters, a custom sink, the line pattern |
| runtime.md | queues, FrontendOptions, BackendOptions, performance, flushing, shutdown, signals, fork(), clocks, unit tests |
| features.md | named arguments, rate limits, tags, MDC, backtrace, the function API, records from another API |
| data-files.md | binary records, pcap captures, CSV files, metrics |
| stale-api.md | code or an example does not match this skill, or Quill is being upgraded |
| migrate.md | replacing another logging library; it names the file with the mapping for each one |
Everything else is in the documentation: https://quillcpp.readthedocs.io/llms.txt lists the pages and https://quillcpp.readthedocs.io/llms-full.txt holds them in one file. Each option is also documented in the header that declares it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

