Liking cljdoc? Tell your friends :D

std.log.core


basic-loggerclj

(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
raw docstring

basic-writeclj

(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"
raw docstring

identity-loggerclj

(identity-logger)
(identity-logger m)

creates a identity logger

(identity-logger)

creates a identity logger

(identity-logger)
raw docstring

log-rawclj

(log-raw data)
(log-raw logger data)

sends raw data to the logger

sends raw data to the logger
raw docstring

logger-enqueueclj

(logger-enqueue {:keys [instance] :as logger} entry)

submits a task to the logger job queue

submits a task to the logger job queue
raw docstring

logger-infoclj

(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}
raw docstring

logger-initclj

(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})})
raw docstring

logger-messageclj

(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?
raw docstring

logger-processclj

(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
raw docstring

logger-startclj

(logger-start {:keys [instance] :as logger})

starts the logger, initating a queue and executor

starts the logger, initating a queue and executor
raw docstring

logger-stopclj

(logger-stop {:keys [instance] :as logger})

stops the logger, queue and executor

stops the logger, queue and executor
raw docstring

logger-submitclj

(logger-submit {:keys [instance] :as logger} entry)

basic submit function

basic submit function
raw docstring

multi-loggerclj

(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}]})
raw docstring

process-exceptionclj

(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"})
raw docstring

stepcljmacro

(step message & body)

conducts a step that is logged

conducts a step that is logged
raw docstring

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

× close