An experimental, task-based logging library.
An experimental, task-based logging library.
(add-writer chan-key channel writer)
Add a log writer to a log channel.
Add a log writer to a log channel.
(channel child)
(channel child parent)
Create a new log channel deriving from a parent channel, which defaults to :info if no parent channel is specified.
Create a new log channel deriving from a parent channel, which defaults to :info if no parent channel is specified.
(clear-all-writers)
(clear-writers channel)
(console channels)
(console channels chan-key)
Setup a log channel to output to the console. (log/console :data-importer)
Setup a log channel to output to the console. (log/console :data-importer)
(console-writer)
Returns a basic console writer function.
Returns a basic console writer function.
(def-let bindings & more)
like let, but binds the expressions globally.
like let, but binds the expressions globally.
(default-channel-tree)
(file channels path)
(file channels path chan-key)
(file-writer path)
Returns a file based writer function configured to write to the file located at path.
Returns a file based writer function configured to write to the file located at path.
(format channel fmt & args)
Log a formatted message to the given channel.
Log a formatted message to the given channel.
(in-color & [color])
(log-event channel args)
(log-event base-chan channel args)
Used internally to determine all channels that a log event needs to be published too.
Used internally to determine all channels that a log event needs to be published too.
(println channel & args)
Log a message to the given channel.
Log a message to the given channel.
(remove-writer channel chan-key)
Remove the writer registered with a channel-key for a channel.
Remove the writer registered with a channel-key for a channel.
(repl channels)
(repl channels chan-key)
Log output to the System/out.
This works in the nailgun repl of vimclojure, but might be more generally useful elsewhere.
Log output to the System/out. This works in the nailgun repl of vimclojure, but might be more generally useful elsewhere.
(repl-writer out-stream)
(reset-channels)
(spy channel expr)
Evaluates expr and outputs the form and its result to a channel. Returns the result of expr.
Evaluates expr and outputs the form and its result to a channel. Returns the result of expr.
(to & args)
(trace channel trace-symbols & form)
Outputs the trace to a log channel.
Outputs the trace to a log channel.
(written? channel)
Are there any writers registered for this channel?
Are there any writers registered for this channel?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close