(journal-appender)
(journal-appender default-fields-fn)
Journal appender for timbre, using journal-output-fn
. Optionally takes a
single fn that should return a map that will be merged into the structured
fields sent to journal.
Any maps passed to a timbre logger will be sent to journal as structured data. Any complex data structures in values will be serialized as EDN.
Journal appender for timbre, using `journal-output-fn`. Optionally takes a single fn that should return a map that will be merged into the structured fields sent to journal. Any maps passed to a timbre logger will be sent to journal as structured data. Any complex data structures in values will be serialized as EDN.
(journal-output-fn data)
(journal-output-fn opts data)
journal (fn [data]) -> string output fn.
Use(partial default-output-fn <opts-map>)
to modify default opts.
Modified from timbre/default-output-fn to remove timestamp, hostname, log
level information and any hash-maps passed in vargs
, as this is already
provided by journal.
Note that this output handler does not try to retain information in case of
duplicate keys in maps passed in vargs
.
journal (fn [data]) -> string output fn. Use`(partial default-output-fn <opts-map>)` to modify default opts. Modified from timbre/default-output-fn to remove timestamp, hostname, log level information and any hash-maps passed in `vargs`, as this is already provided by journal. Note that this output handler does not try to retain information in case of duplicate keys in maps passed in `vargs`.
(stacktrace err)
(stacktrace err _opts)
Simple stacktrace to string. _opts
currently do nothing.
Simple stacktrace to string. `_opts` currently do nothing.
(timbre->syslog k)
Convert Timbre log level into the syslog equivalent. Defaults to log level 3 (err) if passed an invalid log level.
Convert Timbre log level into the syslog equivalent. Defaults to log level 3 (err) if passed an invalid log level.
Map timbre log levels to syslog levels
Map timbre log levels to syslog levels
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close