Liking cljdoc? Tell your friends :D

datalogger.core


_initclj

source

assert-logscljmacro

(assert-logs expectation & body)

Execute body, capture the logs, and avow that the captured logs match the expectation.

Execute body, capture the logs, and avow that the captured logs match the expectation.
sourceraw docstring

capturecljmacro

(capture & body)

Capture the logs being written.

Capture the logs being written.
sourceraw docstring

defloggedcljmacro

(deflogged symbol docs bindings & body)

Define a function that logs its inputs and outputs (and errors). Will not log inputs whose symbol begins with an underscore.

Define a function that logs its inputs and outputs (and errors). Will not
log inputs whose symbol begins with an underscore.
sourceraw docstring

logcljmacro

(log & args)

Write to the log.

required argument that should be first.

keyword to indicate the log level or a vector of [logger-name level]

optional arguments that may appear in any order.

a map of additional data to write to the log entry. a throwable instance to include a stack trace / exception data. string message that can be formatted with data from the data map.

Write to the log.

required argument that should be first.

  keyword to indicate the log level or a vector of [logger-name level]

optional arguments that may appear in any order.

  a map of additional data to write to the log entry.
  a throwable instance to include a stack trace / exception data.
  string message that can be formatted with data from the data map.
sourceraw docstring

set-configuration!clj

(set-configuration! config)

Set logging configuration options.

Set logging configuration options.
sourceraw docstring

with-configcljmacro

(with-config config & body)

Alters the config/config binding to new configuration for the execution of body.

Alters the config/*config* binding to new configuration for the execution of body.
sourceraw docstring

with-contextcljmacro

(with-context context & body)

Add data onto the context stack to be included in any logs. Data is deep merged with data already on the stack.

Add data onto the context stack to be included in any logs.
Data is deep merged with data already on the stack.
sourceraw docstring

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

× close