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.
sourceraw docstring

debugclj/smacro

(debug & args)
source

errorclj/smacro

(error & args)
source

fatalclj/smacro

(fatal & args)
source

flineclj/s

(fline and-form)
source

infoclj/smacro

(info & args)
source

level-mapcljs

source

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!`.
sourceraw docstring

logging-priorityclj/s

source

set-level!clj/s

(set-level! log-level)
source

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] ...)
sourceraw 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.
sourceraw 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.
sourceraw docstring

traceclj/smacro

(trace & args)
source

warnclj/smacro

(warn & args)
source

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

× close