(entries)
(entries entry-type)
(entries g entry-type)
Returns [<entry-id>, ...] for entry-type
in g
ordered by :glog/executionOrder
Where
<entry-id> is a KWI identifying a log event in <g>
<g> is an optional IGraph supporting the logging ontology, (default log-graph)
This is typically either the current log-graph or a copy of the log-grpah
from a previous session.
<entry-type> is :all or the ID of some entry type.
Returns [<entry-id>, ...] for `entry-type` in `g` ordered by :glog/executionOrder Where <entry-id> is a KWI identifying a log event in <g> <g> is an optional IGraph supporting the logging ontology, (default log-graph) This is typically either the current log-graph or a copy of the log-grpah from a previous session. <entry-type> is :all or the ID of some entry type.
(entry-count)
(entry-count g)
Returns the number of entries in g
(default @log-graph)
Returns the number of entries in `g` (default @log-graph)
(ith-entry i)
(ith-entry g i)
Returns [<entry-id> <description>] for ith execution order in g
(default @graph-log)
Where
<entry-id> is keyword naming the entry
<description> is the normal-form description of <entry-id> in <g>
<g> is a log-graph (the current one by default)
Returns [<entry-id> <description>] for ith execution order in `g` (default @graph-log) Where <entry-id> is keyword naming the entry <description> is the normal-form description of <entry-id> in <g> <g> is a log-graph (the current one by default)
(level>= this-level that-level)
Returns true iff this-level
has priority >= that-level
Where
<this-level> e.g. :glog/INFO
<that-level> e.g. :glog/DEBUG
Returns true iff `this-level` has priority >= `that-level` Where <this-level> e.g. :glog/INFO <that-level> e.g. :glog/DEBUG
(log-reset!)
(log-reset! initial-graph)
Side-effect: resets @log-graph to initial-graph
Side-effect: if (initial-graph:glog/SaveToFn igraph/compiledAs <path-fn>),
the previous contents of the graph will be spit'd to <output-path>
Where
<initial-graph> is an IGraph, informed by ont-app.graph-log.core/ontology
<fn> := fn [g] -> <output-path>
<output-path> is a valid path specification , possibly starting with file://
Side-effect: resets @log-graph to `initial-graph` Side-effect: if (initial-graph:glog/SaveToFn igraph/compiledAs <path-fn>), the previous contents of the graph will be spit'd to <output-path> Where <initial-graph> is an IGraph, informed by ont-app.graph-log.core/ontology <fn> := fn [g] -> <output-path> <output-path> is a valid path specification , possibly starting with file://
(log-value! entry-type value)
(log-value! entry-type other-args value)
Returns value
Side effect: logs <id> :glog/value value
, plus other-args
into log-graph
Where
<
Returns `value` Side effect: logs <id> :glog/value `value`, plus `other-args` into log-graph Where <
(query-log q)
(query-log g q)
Returns [<bmap>, ....] for q
posed to optional g
Where
<bmap> := {<var> <value>, ...} bindings to <q> posed to <g>
<q> is a query in a format amenable to <g>
<g> is an IGraph supporting the graph-log vocabulary (default @log-graph)
Returns [<bmap>, ....] for `q` posed to optional `g` Where <bmap> := {<var> <value>, ...} bindings to <q> posed to <g> <q> is a query in a format amenable to <g> <g> is an IGraph supporting the graph-log vocabulary (default @log-graph)
(remove-timestamps)
(remove-timestamps g)
Spurious difference between two logs
Spurious difference between two logs
(remove-variant-values)
(remove-variant-values g)
Returns g
, removing/replacing values which would naturally vary between sessions.
These would give rise to spurious differences between two otherwise identical
logs. Timestamps are removed, and compiled objects are replaced with
:compiled
Where
<g> is an optional log-graph from the current or past sessions. Default
is current @log-graph
Returns `g`, removing/replacing values which would naturally vary between sessions. These would give rise to spurious differences between two otherwise identical logs. Timestamps are removed, and compiled objects are replaced with :compiled Where <g> is an optional log-graph from the current or past sessions. Default is current @log-graph
(search-backward test)
(search-backward test start)
(search-backward g test start)
Searches the log backward for a match to test
, starting at start
Where
<test> := fn [g entry] -> boolean
<start> is an integer indexing the (entries g) (default end of entries)
<g> is the log-graph
Searches the log backward for a match to `test`, starting at `start` Where <test> := fn [g entry] -> boolean <start> is an integer indexing the (entries g) (default end of entries) <g> is the log-graph
(search-forward test)
(search-forward test start)
(search-forward g test start)
Searches the log forward for a match to test
starting at start
Where
<test> := fn [g entry] -> boolean
<start> is an integer indexing (entries g) (default 0)
<g> is the log-graph
Searches the log forward for a match to `test` starting at `start` Where <test> := fn [g entry] -> boolean <start> is an integer indexing (entries g) (default 0) <g> is the log-graph
(show entry-id)
(show g entry-id)
Returns contents of entry-id
for optional g
Where
<entry-id> is the KWI of an entry
<g> is a log-graph (default @log-graph)
Returns contents of `entry-id` for optional `g` Where <entry-id> is the KWI of an entry <g> is a log-graph (default @log-graph)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close