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.
(-log location level & things-to-print)
Private implementation for macro output. Use log
instead.
Private implementation for macro output. Use `log` instead.
(debug & args)
(error & args)
(fatal & args)
(fline and-form)
(info & args)
(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!`.
(set-level! log-level)
(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] ...)
(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.
(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.
(trace & args)
(warn & args)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close