(basic-logger)(basic-logger m)constructs a basic logger
(basic-logger) => std.log.core.BasicLogger
constructs a basic logger (basic-logger) => std.log.core.BasicLogger
(basic-write item pretty)writes to the logger
(print/with-out-str (basic-write [{:a 1 :b 2}] false)) => "[{:a 1, :b 2}]\n"
writes to the logger
(print/with-out-str
(basic-write [{:a 1 :b 2}] false))
=> "[{:a 1, :b 2}]\n"(identity-logger)(identity-logger m)creates a identity logger
(identity-logger)
creates a identity logger (identity-logger)
(log-raw data)(log-raw logger data)sends raw data to the logger
sends raw data to the logger
(logger-enqueue {:keys [instance] :as logger} entry)submits a task to the logger job queue
submits a task to the logger job queue
(logger-info {:keys [instance] :as logger})returns information about the logger
(logger-info (common/default-logger)) => {:level :debug, :type :console}
returns information about the logger
(logger-info (common/default-logger))
=> {:level :debug, :type :console}(logger-init {:keys [type level interval max-batch] :as m})sets defaults for the logger
(logger-init {:type :basic}) => (contains {:type :basic, :instance (stores {:level :debug})})
sets defaults for the logger
(logger-init {:type :basic})
=> (contains {:type :basic,
:instance (stores {:level :debug})})(logger-message level {:log/keys [timestamp] :as context} exception)constructs a logger message
(logger-message :debug {} nil) => map?
constructs a logger message
(logger-message :debug {} nil)
=> map?(logger-process {:log/keys [value] :fn/keys [process] :as item})a special :fn key for processing the input
a special :fn key for processing the input
(logger-start {:keys [instance] :as logger})starts the logger, initating a queue and executor
starts the logger, initating a queue and executor
(logger-stop {:keys [instance] :as logger})stops the logger, queue and executor
stops the logger, queue and executor
(logger-submit {:keys [instance] :as logger} entry)basic submit function
basic submit function
(multi-logger m)creates multiple loggers
(multi-logger {:loggers [{:type :console :interval 500 :max-batch 10000} {:type :basic :interval 500 :max-batch 10000}]})
creates multiple loggers
(multi-logger {:loggers [{:type :console
:interval 500
:max-batch 10000}
{:type :basic
:interval 500
:max-batch 10000}]})(process-exception ex)converts an exception into a map
(process-exception (ex-info "Error" {})) => (contains-in {:cause "Error", :via [{:message "Error", :data {}}], :trace [], :data {}, :message "Error"})
converts an exception into a map
(process-exception (ex-info "Error" {}))
=> (contains-in {:cause "Error",
:via [{:message "Error", :data {}}],
:trace [], :data {}, :message "Error"})(step message & body)conducts a step that is logged
conducts a step that is logged
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |