Simple logging handler for integration with Timbre.
(timbre-handler)
(timbre-handler {:keys [timbre-level format-pstats-opts]
:or {timbre-level :info}})
Returns a simple handler fn for use with `add-handler!` that: 1. Formats `profile` pstats with `format-pstats`, and 2. Logs the resulting string table with Timbre. Options: `:format-pstats-opts` - Opts map provided to `format-pstats` `:timbre-level` - Timbre level, or ifn to map profiling->Timbre level
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |