(attach obj)
Attaches the current logging info as metadata to obj. Will not do anything if obj is not an instance of IObj, because metadata cannot be attached in this case.
Attaches the current logging info as metadata to obj. Will not do anything if obj is not an instance of IObj, because metadata cannot be attached in this case.
(detach obj)
Returns the attached logging info from obj.
Returns the attached logging info from obj.
(get-checkpoints)
Returns the current logging checkpoints.
Returns the current logging checkpoints.
(get-root-checkpoint)
Returns the root/first/topmost logging checkpoint.
Returns the root/first/topmost logging checkpoint.
(log level msg & [data])
Prints a log message based on the current logging info.
Prints a log message based on the current logging info.
(log-data level msg & [data])
Returns current logging data augmented with msg and data.
Returns current logging data augmented with msg and data.
(with-checkpoint name & body)
Adds a logging checkpoint.
Adds a logging checkpoint.
(with-data data & body)
Adds user data into the current logging info, so that it will be available in subsequent log invocations.
Adds user data into the current logging info, so that it will be available in subsequent log invocations.
(with-historical-logging-info logging-info & body)
Merges given logging-info with current logging-info. Assumes that given logging-info is 'older' than the current one and thus prepends the former's checkpoints to the latter's.
Merges given logging-info with current logging-info. Assumes that given logging-info is 'older' than the current one and thus prepends the former's checkpoints to the latter's.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close