Facilities for logging state changes.
Facilities for logging state changes.
(configure-state-changes-logging riemann-config desc)
Returns an object that can be fed to
set-global-log-state-changes-config!
.
Returns an object that can be fed to [[set-global-log-state-changes-config!]].
(log-state-change ?state)
(log-state-change ?state ?ttl)
(log-state-change ?state ?ttl ?mp)
Log a state change asynchronously (monadic version), constructed from the arguments.
?ttl
, if present, is the time-to-live in seconds.
Log a state change asynchronously (monadic version), constructed from the arguments. `?ttl`, if present, is the time-to-live in seconds.
(log-state-change! ?context ?state)
(log-state-change! ?context ?state ?ttl)
(log-state-change! ?context ?state ?ttl ?mp)
Log a state change asynchronously (imperative version).
?more
, if present, is a map with more properties.
Log a state change asynchronously (imperative version). `?more`, if present, is a map with more properties.
(log-state-change-map rec__6325__auto__)
(log-state-change-map data__6326__auto__ v__6327__auto__)
Lens for the map
field (Map with more data or nil
. The context is a map that is merged
with the log context that's already active, if present.) from a [[LogStateChange]] record. See active.clojure.logger.state-change/make-log-state-change
.
Lens for the `map` field (Map with more data or `nil`. The context is a map that is merged with the log context that's already active, if present.) from a [[LogStateChange]] record. See [[active.clojure.logger.state-change/make-log-state-change]].
(log-state-change-namespace rec__6325__auto__)
(log-state-change-namespace data__6326__auto__ v__6327__auto__)
Lens for the namespace
field (String) from a [[LogStateChange]] record. See active.clojure.logger.state-change/make-log-state-change
.
Lens for the `namespace` field (String) from a [[LogStateChange]] record. See [[active.clojure.logger.state-change/make-log-state-change]].
(log-state-change-state rec__6325__auto__)
(log-state-change-state data__6326__auto__ v__6327__auto__)
Lens for the state
field (Arbitrary string, should be from finite set) from a [[LogStateChange]] record. See active.clojure.logger.state-change/make-log-state-change
.
Lens for the `state` field (Arbitrary string, should be from finite set) from a [[LogStateChange]] record. See [[active.clojure.logger.state-change/make-log-state-change]].
(log-state-change-ttl rec__6325__auto__)
(log-state-change-ttl data__6326__auto__ v__6327__auto__)
Lens for the ttl
field (Floating-point number in seconds or nil
.) from a [[LogStateChange]] record. See active.clojure.logger.state-change/make-log-state-change
.
Lens for the `ttl` field (Floating-point number in seconds or `nil`.) from a [[LogStateChange]] record. See [[active.clojure.logger.state-change/make-log-state-change]].
(log-state-change? thing)
Is object a LogStateChange
record? See active.clojure.logger.state-change/make-log-state-change
.
Is object a `LogStateChange` record? See [[active.clojure.logger.state-change/make-log-state-change]].
(make-log-state-change namespace state ttl map)
Construct a LogStateChange
record.
namespace
(String): access via active.clojure.logger.state-change/log-state-change-namespace
state
(Arbitrary string, should be from finite set): access via active.clojure.logger.state-change/log-state-change-state
ttl
(Floating-point number in seconds or nil
.): access via active.clojure.logger.state-change/log-state-change-ttl
map
(Map with more data or nil
. The context is a map that is merged
with the log context that's already active, if present.): access via active.clojure.logger.state-change/log-state-change-map
Construct a `LogStateChange` record. `namespace` (String): access via [[active.clojure.logger.state-change/log-state-change-namespace]] `state` (Arbitrary string, should be from finite set): access via [[active.clojure.logger.state-change/log-state-change-state]] `ttl` (Floating-point number in seconds or `nil`.): access via [[active.clojure.logger.state-change/log-state-change-ttl]] `map` (Map with more data or `nil`. The context is a map that is merged with the log context that's already active, if present.): access via [[active.clojure.logger.state-change/log-state-change-map]]
(reset-global-log-state-changes-config! compare)
Reset to back to default, if the config equals compare
.
Reset to back to default, if the config equals `compare`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close