Liking cljdoc? Tell your friends :D

taoensso.timbre.appenders.postal

Email (Postal) appender. Requires https://github.com/drewr/postal.

Email (Postal) appender. Requires https://github.com/drewr/postal.
raw docstring

default-body-fnclj

(default-body-fn {:keys [max-len]} output-str)

Given an output-str, returns an appropriate Postal email body.

Given an `output-str`, returns an appropriate Postal email body.
sourceraw docstring

default-subject-fnclj

(default-subject-fn {:keys [max-len]} output-str)

Given an output-str, returns an appropriate email subject string:

  • Take only the first line
  • Trim it
  • Simplify whitespace
  • Never exceed max-subject-len characters.
Given an `output-str`, returns an appropriate email subject string:
- Take only the first line
- Trim it
- Simplify whitespace
- Never exceed `max-subject-len` characters.
sourceraw docstring

make-postal-appenderclj

(make-postal-appender & [appender-merge opts])

DEPRECATED. Please use postal-appender instead.

DEPRECATED. Please use `postal-appender` instead.
sourceraw docstring

postal-appenderclj

(postal-appender
  postal-config
  &
  [{:keys [subject-len body-len subject-fn body-fn]
    :or {subject-len 150
         subject-fn (partial default-subject-fn
                             {:max-len (enc/as-?int subject-len)})
         body-fn (partial default-body-fn {:max-len (enc/as-?int body-len)})}}])

Returns a Postal email appender. (postal-appender ^{:host "mail.isp.net" :user "jsmith" :pass "sekrat!!1"} {:from "Bob's logger me@draines.com" :to "foo@example.com"})

Returns a Postal email appender.
(postal-appender
  ^{:host "mail.isp.net" :user "jsmith" :pass "sekrat!!1"}
  {:from "Bob's logger <me@draines.com>" :to "foo@example.com"})
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close