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
Copy file name to clipboardExpand all lines: README.md
+55-32Lines changed: 55 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,11 @@
1
1
<ahref="https://www.taoensso.com/clojure"title="More stuff by @ptaoussanis at www.taoensso.com"><imgsrc="https://www.taoensso.com/open-source.png"alt="Taoensso open source"width="340"/></a>
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/), a custom fn, etc.
20
+
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/), a custom fn, etc.
19
21
20
-
And it works great for **library authors** that want to emit rich logging _without_ forcing their users to adopt any particular backend:
22
+
It works great for **library authors** that want to emit rich logging _without_ forcing their users to adopt any particular backend.
21
23
22
-
- Library authors include the tiny [dep][Clojars URL] in their lib, then make their logging calls with the [Trove API](TODO).
23
-
- Library users can then [easily choose](TODO) their preferred backend.
24
+
## To log
24
25
25
-
### Quick example
26
+
1. Include the (tiny) [dependency](#latest-releases) in your project or library.
27
+
2. Use `trove/log!` to make your logging calls (see [docstring](https://cljdoc.org/d/com.taoensso/trove/CURRENT/api/taoensso.trove#log!) for API):
That's why Trove automatically delays any values that need runtime evaluation, allowing the backend to apply filtering *before* paying realization costs.
- Support via [Slack channel][] or [GitHub issues][]
80
+
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*).
59
81
60
82
## Funding
61
83
62
-
You can [help support][sponsor] continued work on this project, thank you!! 🙏
84
+
You can [help support][sponsor] continued work on this project and [others][my work], thank you!! 🙏
63
85
64
86
## License
65
87
@@ -71,14 +93,15 @@ Licensed under [EPL 1.0](LICENSE.txt) (same as Clojure).
0 commit comments