std.log.element
elem-daily-instant
added in 3.0
(elem-daily-instant label ms style)returns a styled label and instant
(elem-daily-instant “TIME:” (h/time-ms) {}) => string?
elem-ns-duration
added in 3.0
(elem-ns-duration label ns style)returns a styled label and duration
(elem-ns-duration “DURATION:” 100000 {}) => string?
elem-position
added in 3.0
(elem-position {:keys [tag function namespace line column]} style)creates a style position element
(elem-position {:tag :hello :namespace ’user :function ’add :column 10 :line 11} {:text :white}) => string?
style-ansi
added in 3.0
(style-ansi {:keys [text background bold], :as style, :or {background :none}})constructs the style used in console
(style-ansi {:text :blue :background :white}) => :normal :on-white :blue
style-heading
added in 3.0
(style-heading text {:keys [highlight], :as style})returns the text for a style
(style-heading “Hello” {:highlight true :text :blue :background :white}) => ["[22;47;34m Hello 0m" 7