std.log
action
macro
(action body)(action context body)(action logger context body)
basic-logger
added in 3.0
(basic-logger)(basic-logger m)
constructs a basic logger
(basic-logger) => std.log.core.BasicLogger
block
macro
(block body)(block context body)(block logger context body)
console-logger
added in 3.0
(console-logger)(console-logger m)
creates a console logger
(console-logger)
create
added in 3.0
(create m)
creates a component compatible logger
(log/create {:type :basic})
current-context
added in 3.0
(current-context)
returns the current context
debug
macro
(debug data)(debug context data)(debug logger context data)
error
macro
(error exception)(error context exception)(error logger context exception)
fatal
macro
(fatal exception)(fatal context exception)(fatal logger context exception)
identity-logger
added in 3.0
(identity-logger)(identity-logger m)
creates a identity logger
(identity-logger)
info
macro
(info data)(info context data)(info logger context data)
log
macro
added in 3.0
(log data)(log context data)(log level context data)(log logger level context data)(log logger level context data exception)
log-context
added in 3.0
(log-context body)
creates a log-context form
(log-context “hello”) => seq?
logger
added in 3.0
(logger m)
creates an starts a logger
(log/logger {:type :basic})
logger?
added in 3.0
(logger? m)
checks if the object is a logger
(log/logger? (log/create {:type :basic})) => true
meter
macro
(meter body)(meter context body)(meter logger context body)
multi-logger
added in 3.0
(multi-logger m)
note
macro
(note body)(note context body)(note logger context body)
profile
macro
(profile body)(profile context body)(profile logger context body)
put-logger!
added in 3.0
(put-logger! {:keys [level context namespace function filter], :as data})(put-logger! {:keys [instance], :as logger} data)
updates the global logger
section
macro
(section body)(section context body)(section logger context body)
set-context!
added in 3.0
(set-context! context)
set-level!
added in 3.0
(set-level! status)
sets the global level variable
set-logger!
added in 3.0
(set-logger! logger)(set-logger! logger var)
set-static!
added in 3.0
(set-static! bool)
sets the global static variable
show
macro
(show body)(show context body)(show logger context body)
silent
macro
(silent body)(silent context body)(silent logger context body)
spy
macro
(spy body)(spy context body)(spy logger context body)
status
macro
(status body)(status context body)(status logger context body)
step
macro
added in 3.0
(step message & body)
conducts a step that is logged
task
macro
(task body)(task context body)(task logger context body)
todo
macro
(todo body)(todo context body)(todo logger context body)
trace
macro
(trace body)(trace context body)(trace logger context body)
track
macro
(track body)(track context body)(track logger context body)
verbose
macro
(verbose data)(verbose context data)(verbose logger context data)
warn
macro
(warn data)(warn context data)(warn logger context data)
with
macro
added in 3.0
(with opts & body)
enables targeted printing of statements
with-context
macro
added in 3.0
(with-context context & body)
executes code with a given context
with-level
macro
added in 3.0
(with-level level & body)
executes body with a given level
with-logger
macro
added in 3.0
(with-logger logger & body)
executes code with a logger
with-logger-basic
macro
added in 3.0
(with-logger-basic & body)
executes code with the basic logger (for debugging the logger)
with-logger-verbose
macro
added in 3.0
(with-logger-verbose & body)
executes code with a verbose logger (for printing out everything)
with-overwrite
macro
added in 3.0
(with-overwrite overwrite & body)
executes code with a given overwrite