Liking cljdoc? Tell your friends :D

frereth.weald.logging

Functional logging mechanism

Functional logging mechanism
raw docstring

async-log-factoryclj/s

(async-log-factory ch)
source

AsyncLoggercljs

source

atomically!clj/s

(atomically! log-atom log-fn & args)

Accumulate log messages into an atom

This can frequently be more convenient than returning the updated state.

Accumulate log messages into an atom

This can frequently be more convenient than returning the updated
state.
sourceraw docstring

clean-forkclj/s

(clean-fork src child-context)

Fork the context/lamport clock without the logs.

Main use-case is exception handlers in weird side-effecty places where it isn't convenient to propagate a log line or 2 that will show up later.

Fork the context/lamport clock without the logs.

Main use-case is exception handlers in weird side-effecty places
where it isn't convenient to propagate a log line or 2 that will
show up later.
sourceraw docstring

composite-log-factoryclj/s

(composite-log-factory loggers-to-combine)
source

CompositeWritercljs

source

console-log-factorycljs

(console-log-factory)
source

ConsoleLoggercljs

source

debugclj/s≠

clj
(debug log-state__1133__auto__ label__1134__auto__)
(debug log-state__1133__auto__ label__1134__auto__ message__1135__auto__)
(debug log-state__1133__auto__
       label__1134__auto__
       message__1135__auto__
       details__1136__auto__)
cljs
(debug log-state__5271__auto__ label__5272__auto__)
(debug log-state__5271__auto__ label__5272__auto__ message__5273__auto__)
(debug log-state__5271__auto__
       label__5272__auto__
       message__5273__auto__
       details__5274__auto__)
source

do-sync-clockclj/s

(do-sync-clock remote-lamport)

Synchronize my clock with another's

Low-level function used to build do-synchronize-clock-with-state

Synchronize my clock with another's

Low-level function used to build do-synchronize-clock-with-state
sourceraw docstring

do-synchronize-clock-with-stateclj/s

(do-synchronize-clock-with-state state)

Coordinate state's clock with our internal counter

Coordinate state's clock with our internal counter
sourceraw docstring

errorclj/s≠

clj
(error log-state__1133__auto__ label__1134__auto__)
(error log-state__1133__auto__ label__1134__auto__ message__1135__auto__)
(error log-state__1133__auto__
       label__1134__auto__
       message__1135__auto__
       details__1136__auto__)
cljs
(error log-state__5271__auto__ label__5272__auto__)
(error log-state__5271__auto__ label__5272__auto__ message__5273__auto__)
(error log-state__5271__auto__
       label__5272__auto__
       message__5273__auto__
       details__5274__auto__)
source

exceptionclj/s

(exception log-state ex label)
(exception log-state ex label message)
(exception log-state ex label message original-details)
source

exception-detailsclj/s

(exception-details ex)
source

fatalclj/s≠

clj
(fatal log-state__1133__auto__ label__1134__auto__)
(fatal log-state__1133__auto__ label__1134__auto__ message__1135__auto__)
(fatal log-state__1133__auto__
       label__1134__auto__
       message__1135__auto__
       details__1136__auto__)
cljs
(fatal log-state__5271__auto__ label__5272__auto__)
(fatal log-state__5271__auto__ label__5272__auto__ message__5273__auto__)
(fatal log-state__5271__auto__
       label__5272__auto__
       message__5273__auto__
       details__5274__auto__)
source

file-writer-factoryclj

(file-writer-factory file-name)
source

flush-atomically!clj/s

(flush-atomically! logger log-atom)

Flush an accumulation of log messages

Flush an accumulation of log messages
sourceraw docstring

flush-logs!clj/s

(flush-logs! logger {:keys [:frereth.weald.specs/context] :as log-state})

For the side-effects to write the accumulated logs.

Returns a fresh set of log entries

For the side-effects to write the accumulated logs.

Returns a fresh set of log entries
sourceraw docstring

forkclj/s

(fork src)
(fork src child-context)

Return shape depends on arity

Return shape depends on arity
sourceraw docstring

format-log-stringclj/s

(format-log-string caller-stack-holder entry)
source

get-official-clockclj/s

(get-official-clock)
source

infoclj/s≠

clj
(info log-state__1133__auto__ label__1134__auto__)
(info log-state__1133__auto__ label__1134__auto__ message__1135__auto__)
(info log-state__1133__auto__
      label__1134__auto__
      message__1135__auto__
      details__1136__auto__)
cljs
(info log-state__5271__auto__ label__5272__auto__)
(info log-state__5271__auto__ label__5272__auto__ message__5273__auto__)
(info log-state__5271__auto__
      label__5272__auto__
      message__5273__auto__
      details__5274__auto__)
source

initclj/s

(init context)
(init context start-clock)
source

merge-entriesclj/s

(merge-entries xs ys)

Combine entries from two sets of logs

Note that this is a relatively expensive operation

Combine entries from two sets of logs

Note that this is a relatively expensive operation
sourceraw docstring

merge-stateclj/s

(merge-state x y)

Combine the entries of two log states

This is mostly meant for logs that have diverged from the same context.

Combine the entries of two log states

This is mostly meant for logs that have diverged from the same context.
sourceraw docstring

std-err-log-factoryclj

(std-err-log-factory)
source

std-out-log-factoryclj

(std-out-log-factory)
source

stream-log-factoryclj

(stream-log-factory stream)
source

synchronizeclj/s

(synchronize {l-clock :frereth.weald.specs/lamport
              l-ctx :frereth.weald.specs/context
              :as lhs}
             {r-clock :frereth.weald.specs/lamport
              r-ctx :frereth.weald.specs/context
              :as rhs})

Fix 2 clocks that have probably drifted apart

Fix 2 clocks that have probably drifted apart
sourceraw docstring

traceclj/s≠

clj
(trace log-state__1133__auto__ label__1134__auto__)
(trace log-state__1133__auto__ label__1134__auto__ message__1135__auto__)
(trace log-state__1133__auto__
       label__1134__auto__
       message__1135__auto__
       details__1136__auto__)
cljs
(trace log-state__5271__auto__ label__5272__auto__)
(trace log-state__5271__auto__ label__5272__auto__ message__5273__auto__)
(trace log-state__5271__auto__
       label__5272__auto__
       message__5273__auto__
       details__5274__auto__)
source

warnclj/s≠

clj
(warn log-state__1133__auto__ label__1134__auto__)
(warn log-state__1133__auto__ label__1134__auto__ message__1135__auto__)
(warn log-state__1133__auto__
      label__1134__auto__
      message__1135__auto__
      details__1136__auto__)
cljs
(warn log-state__5271__auto__ label__5272__auto__)
(warn log-state__5271__auto__ label__5272__auto__ message__5273__auto__)
(warn log-state__5271__auto__
      label__5272__auto__
      message__5273__auto__
      details__5274__auto__)
source

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

× close