Liking cljdoc? Tell your friends :D

active.clojure.logger.state-change

Facilities for logging state changes.

Facilities for logging state changes.
raw docstring

configure-state-changes-loggingclj

(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!]].
sourceraw docstring

log-context-accesscljmacro

(log-context-access ?mp ?key)
source

log-state-changecljmacro

(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.
sourceraw docstring

log-state-change!cljmacro

(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.
sourceraw docstring

log-state-change!-internalclj

(log-state-change!-internal namespace state ttl mp)
source

log-state-change-mapclj

(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]].
sourceraw docstring

log-state-change-namespaceclj

(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]].
sourceraw docstring

log-state-change-stateclj

(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]].
sourceraw docstring

log-state-change-to-events!clj

(log-state-change-to-events! namespace state mp)
source

log-state-change-ttlclj

(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]].
sourceraw docstring

log-state-change?clj

(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]].
sourceraw docstring

log-state-changes-command-configclj

source

log-state-changes-command-config-settingclj

source

make-log-state-changeclj

(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]]
sourceraw docstring

reset-global-log-state-changes-config!clj

(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`.
sourceraw docstring

run-log-state-changeclj

(run-log-state-change run-any env mstate m)
source

set-global-log-state-changes-config!clj

(set-global-log-state-changes-config! scc)
source

state-changes-configclj

source

state-changes-config-defaultclj

source

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

× close