You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It supports any backend including: [Telemere](https://www.taoensso.com/telemere), [Timbre](https://www.taoensso.com/timbre), [μ/log](https://github.com/BrunoBonacci/mulog), [tools.logging](https://github.com/clojure/tools.logging), [SLF4J](https://www.slf4j.org/), etc.
22
26
23
-
It works great for **library authors** that want to emit rich logging _without_ forcing their users to adopt any particular backend.
27
+
Trove and Telemere offer an identical API and were designed in concert.
24
28
25
29
## To log
26
30
@@ -74,6 +78,17 @@ That's why Trove automatically delays any values that need runtime evaluation, a
74
78
75
79
This explains the `:lazy_``{:keys [msg data error kvs]}` arg given to [`truss/*log-fn*`](https://cljdoc.org/d/com.taoensso/trove/CURRENT/api/taoensso.trove#*log-fn*).
76
80
81
+
## Why structured logging?
82
+
83
+
The key difference between traditional and structured logging?
84
+
85
+
- Traditional logging outputs **strings** (messages).
86
+
- Structured logging in contrast outputs **data**. It retains **rich data types and (nested) structures** throughout the logging pipeline from logging callsite → filters → middleware → handlers.
87
+
88
+
A data-oriented pipeline can make a huge difference - supporting **easier analytics**, **transformation**, **filtering**, etc. It’s also usually **faster**, since you only pay for serialization if/when you need it. In a lot of cases you can avoid serialization altogether if your final target (DB, etc.) supports the relevant types.
89
+
90
+
The structured (data-oriented) approach is inherently more flexible, faster, and well suited to the tools and idioms offered by Clojure and ClojureScript.
91
+
77
92
## Funding
78
93
79
94
You can [help support][sponsor] continued work on this project and [others][my work], thank you!! 🙏
0 commit comments