Liking cljdoc? Tell your friends :D

fulcro.logging

Utilities for logging on the client and server.

This namespace exists so that fulcro libraries have a mechanism to do logging that can be lightweight without pull in any additional dependencies. You can use this logging support, but it is not designed to be great, just lightweight and efficient.

It is highly recommended that you use a dedicated logging library in production apps, such as timbre. However, if you're writing an add-on for Fulcro it is probably best to use this logging so you give our users a consistent way to deal with Fulcro logging.

Utilities for logging on the client and server.

This namespace exists so that fulcro libraries have a mechanism to do logging that can be lightweight without
pull in any additional dependencies. You can use this logging support, but it is not designed to be great, just
lightweight and efficient.

It is highly recommended that you use a dedicated logging library in production apps, such as timbre. However, if
you're writing an add-on for Fulcro it is probably best to use this logging so you give our users a consistent
way to deal with Fulcro logging.
raw docstring

-logclj/s

(-log location level & things-to-print)

Private implementation for macro output. Use log instead.

Private implementation for macro output. Use `log` instead.
raw docstring

debugclj/smacro

(debug & args)

errorclj/smacro

(error & args)

fatalclj/smacro

(fatal & args)

flineclj/s

(fline and-form)

infoclj/smacro

(info & args)

level-mapcljs


logclj/smacro

(log logging-level & things-to-include)

Logs to the current global logging function, which can be set in the top-level logger atom.

If you set the JVM option to something like -Dfulcro.logging=error then this macro will not output any code for logging below that level.

level - one of :trace, :debug, :info, :warn, :error, or :fatal. things-to-include - Any number of additional things to log. The logging function may give special treatment to certain types (e.g. exceptions).

See set-logger!.

Logs to the current global logging function, which can be set in the top-level logger atom.

If you set the JVM option to something like -Dfulcro.logging=error then this macro will not output
any code for logging below that level.

level - one of :trace, :debug, :info, :warn, :error, or :fatal.
things-to-include - Any number of additional things to log. The logging function may give special treatment
to certain types (e.g. exceptions).

See `set-logger!`.
raw docstring

logging-priorityclj/s


set-level!clj/s

(set-level! log-level)

set-logger!clj/s

(set-logger! log-fn)

Set the fulcro logging function.

log-fn - A (fn [{:keys [file line] :as location} level & args] ...)

Set the fulcro logging function.

log-fn - A (fn [{:keys [file line] :as location} level & args] ...)
raw docstring

should-log?clj/s

(should-log? current-logging-level message-level)

Returns true if the current logging level indicates that the message level is of interest.

Returns true if the current logging level indicates that the message level is of interest.
raw docstring

system-log-levelclj/smacro

(system-log-level)

Get the current runtime JVM system logging level from fulcro.logging. Works for clj and cljs.

Get the current runtime JVM system logging level from fulcro.logging. Works for clj and cljs.
raw docstring

traceclj/smacro

(trace & args)

warnclj/smacro

(warn & args)

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

× close