Functional logging mechanism
Functional logging mechanism
(async-log-factory ch)
(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.
(composite-log-factory loggers-to-combine)
(console-log-factory)
(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__)
(debug log-state__5738__auto__ label__5739__auto__)
(debug log-state__5738__auto__ label__5739__auto__ message__5740__auto__)
(debug log-state__5738__auto__
label__5739__auto__
message__5740__auto__
details__5741__auto__)
(do-sync-clock remote-lamport)
Synchronize my clock with a state's
Synchronize my clock with a state's
(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__)
(error log-state__5738__auto__ label__5739__auto__)
(error log-state__5738__auto__ label__5739__auto__ message__5740__auto__)
(error log-state__5738__auto__
label__5739__auto__
message__5740__auto__
details__5741__auto__)
(exception log-state ex label)
(exception log-state ex label message)
(exception log-state ex label message original-details)
(exception-details ex)
(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__)
(fatal log-state__5738__auto__ label__5739__auto__)
(fatal log-state__5738__auto__ label__5739__auto__ message__5740__auto__)
(fatal log-state__5738__auto__
label__5739__auto__
message__5740__auto__
details__5741__auto__)
(file-writer-factory file-name)
(flush-atomically! logger log-atom)
Flush an accumulation of log messages
Flush an accumulation of log messages
(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
(fork src)
(fork src child-context)
Return shape depends on arity
Return shape depends on arity
(format-log-string caller-stack-holder entry)
(get-official-clock)
(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__)
(info log-state__5738__auto__ label__5739__auto__)
(info log-state__5738__auto__ label__5739__auto__ message__5740__auto__)
(info log-state__5738__auto__
label__5739__auto__
message__5740__auto__
details__5741__auto__)
(init context)
(init context start-clock)
(log-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.
(merge-entries xs ys)
Note that this is a relatively expensive operation
Note that this is a relatively expensive operation
(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.
(std-err-log-factory)
(std-out-log-factory)
(stream-log-factory stream)
(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
(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__)
(trace log-state__5738__auto__ label__5739__auto__)
(trace log-state__5738__auto__ label__5739__auto__ message__5740__auto__)
(trace log-state__5738__auto__
label__5739__auto__
message__5740__auto__
details__5741__auto__)
(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__)
(warn log-state__5738__auto__ label__5739__auto__)
(warn log-state__5738__auto__ label__5739__auto__ message__5740__auto__)
(warn log-state__5738__auto__
label__5739__auto__
message__5740__auto__
details__5741__auto__)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close