Skip to content
项目

关于

纯 Clojure/Script 日志库

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
+1
1个月
+3

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Taoensso open source
API | Wiki | Slack | Latest release: v6.8.0 (2025-08-21)

Clj tests Cljs tests Graal tests

Timbre

Pure Clojure/Script logging library

Getting even the simplest Java logging working can be maddeningly complex, and it often gets worse at scale as your needs become more sophisticated.

Timbre offers an all Clojure/Script alternative that's fast, deeply flexible, easy to configure with pure Clojure data, and that just works out the box.

Supports optional interop with tools.logging and Java logging via SLF4Jv2.

Library status

While I will continue to support Timbre as always, I'd recommend new users see Telemere instead - which is essentially a modern rewrite of Timbre.

There's zero pressure for existing users of Timbre to migrate, though there are significant benefits - and migration is often quick and easy. See here for why I made the decision to release a new library.

- Peter Taoussanis

Why Timbre?

  • Full Clojure & ClojureScript support, with built-in appenders for both
  • A single, simple config map, and you're set. No need for XML or properties files
  • Simple (fn [data]) -> ?effects appenders, and (fn [data]) -> ?data middleware
  • Easily save raw logging arguments to the DB of your choice
  • Easily filter logging calls by any combination of: level, namespace, appender
  • Zero overhead compile-time level/ns elision
  • Powerful, easy-to-configure rate limits and async logging
  • Great performance and flexibility at any scale
  • Small, simple, cross-platform pure-Clojure codebase

Documentation

  • Wiki (getting started, usage, etc.)
  • API reference: Codox

Funding

You can help support continued work on this project and others, thank you!! 🙏

License

Copyright © 2014-2025 Peter Taoussanis.
Licensed under EPL 1.0 (same as Clojure).

探索相关项目

加载中…