Liking cljdoc? Tell your friends :D

std.log.element


elem-daily-instantclj

(elem-daily-instant label ms style)

returns a styled label and instant

(elem-daily-instant "TIME:" (h/time-ms) {}) => string?

returns a styled label and instant 

(elem-daily-instant "TIME:" (h/time-ms) {})
=> string?
raw docstring

elem-ns-durationclj

(elem-ns-duration label ns style)

returns a styled label and duration

(elem-ns-duration "DURATION:" 100000 {}) => string?

returns a styled label and duration

(elem-ns-duration "DURATION:" 100000 {})
=> string?
raw docstring

elem-positionclj

(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?

creates a style position element

(elem-position {:tag :hello
                :namespace 'user
                :function 'add
                :column 10
                :line 11}
               {:text :white})
=> string?
raw docstring

style-ansiclj

(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]

constructs the style used in console

(style-ansi {:text :blue :background :white})
=> [:normal :on-white :blue]
raw docstring

style-headingclj

(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]

returns the text for a style

(style-heading "Hello" {:highlight true
                        :text :blue
                        :background :white})
=> [" Hello " 7]
raw docstring

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

× close