Back
carmine-appender (clj)
(source)function
(carmine-appender & [{:keys [conn-opts keyfn entry-fn nentries-by-level], :or {keyfn default-keyfn, entry-fn default-entry-fn, nentries-by-level default-nentries-by-level}}])
Alpha, subject to change.
Returns a Carmine Redis appender:
* All raw logging args are preserved in serialized form (even errors).
* Configurable number of entries to keep per logging level.
* Only the most recent instance of each unique entry is kept.
* Resulting log is just a Clojure value: a vector of log entries (maps).
See also `query-entries`.