MCPcopy Index your code
hub / github.com/SpriteOvO/spdlog-rs

github.com/SpriteOvO/spdlog-rs @v0.5.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.5.3 ↗ · + Follow
912 symbols 2,337 edges 110 files 83 documented · 9% updated 11d agov0.5.3 · 2026-03-10★ 1658 open issues

Browse by type

Functions 724 Types & classes 188
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

spdlog-rs

Fast, highly configurable Rust logging crate, inspired by the C++ logging library spdlog.

Features

  • Very fast (see Benchmarks).
  • Asynchronous support.
  • Compatible with log crate.
  • Custom log formats:
  • compile-time zero-cost pattern or runtime pattern;
  • manually implementing for more flexibility.
  • Various combinable sinks:
    • standard streams with optional color support;
    • files (single file, rotating hourly, daily, periodically or by file size);
    • platform-specific (e.g. journald for Linux and OutputDebugStringW for Windows);
    • third-party services (maintained in separate repositories):
    • spdlog-telegram
    • spdlog-opentelemetry
    • ... more ideas? see #103.
    • and able to implement one yourself.
  • Structured logging.
  • Configuring via environment variables.
  • Readable level filters.

Getting started

Add this to Cargo.toml:

[dependencies]
spdlog-rs = "0.5"

The documentation of this crate is hosted on docs.rs/~, and you can learn examples under ./examples directory along with it.

If you have any trouble while using this crate, please don't hesitate to open a discussion for help. For feature requests or bug reports, please open an issue.

Developments

Unreleased commits are active on [main-dev] branch, and [main] branch is only synchronized when released.

If you are going to contribute spdlog-rs, please make sure to check out the [main-dev] branch and select the [main-dev] branch as the base when opening PR.

Due to the complexity of combining crate feature gates, this repository provides a ./justfile for tool [just] to easily interact with cargo during development. Run command just --list to check the available recipes specifically for this project.

Supported Rust versions

The current minimum supported Rust version is 1.71.

spdlog-rs is built against the latest Rust stable release, it is not guaranteed to build on Rust versions earlier than the minimum supported version.

spdlog-rs follows the compiler support policy that the latest stable version and the 3 most recent minor versions before that are always supported. For example, if the current latest Rust stable version is 1.61, the minimum supported version will not be increased past 1.58. Increasing the minimum supported version is not considered a semver breaking change as long as it complies with this policy.

License

Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 463
Function 261
Class 147
Enum 33
Interface 8

Languages

Rust99%
Python1%

Modules by API surface

spdlog/src/sink/rotating_file_sink.rs48 symbols
spdlog/src/logger.rs43 symbols
spdlog/src/level.rs41 symbols
spdlog/src/sink/std_stream_sink.rs32 symbols
spdlog/src/kv.rs31 symbols
spdlog/src/sink/async_sink/async_pool_sink.rs28 symbols
spdlog/src/sink/dedup_sink.rs27 symbols
spdlog/src/formatter/full_formatter.rs26 symbols
spdlog/src/formatter/pattern_formatter/pattern/datetime.rs25 symbols
spdlog/tests/pattern.rs24 symbols
spdlog/src/formatter/pattern_formatter/mod.rs22 symbols
spdlog/src/error.rs22 symbols

For agents

$ claude mcp add spdlog-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page