Class Log

Unisonly manage several low level modules: tplog, liblog, ulog & utrace-probe

  • Both tplog (and utrace since one is built extending the other) have to be built-in into a process.

A Lua VM can manage both, but has also to be both integrated and sharing the same process data. * Unless settling for either a limited initialisation-only, integrating xb-lua is highly recommended. * To control log-/trace-points traditionally (also shard with with this project's native API's) one has to be very specific when referring to a source reference (file, line). This is a hurdle and basically fits only interactive use, where a human first looks up a/the log-probes(s) and explicitly sets/clears them. * As code change, this method is essentially worth-less (or at least very impractical) for automation scripting. It also requires addressing probes one at a time. The Log class provides additional filter functions that: * Select log-probes per file and function-names, with optional

qualifier of verbosity type (LOGC-LOGV), indexing or both.

* Groped operations of these "selections" for "actuation", like

set/clear. I.e. actuating of groups of all, one line affecting
many, instead of potentially hundreds.

Group operations is in other words what's most of this class is about. As the underlying representation of location is shard with utrace, both Trace and Log inherit from a base-class Cref. Cref consider "groups" as "sets" which can be managed using "set-theory" operation (a subject covered much more in depth in Cref's documentation).

As Cref has no architecture, target specific nor need for direct access to process data, it's a made into a pure Lua module and into a it's own lua-module project lua-cref.

It's preferably built and distributed a "LuaRock" source package albeit several alternative packaging forms are available.

If built under Pokey/bitbake a meta-layer like for example meta-luarocks is recommended.

What remains is what constitutes the "unison" and is implemented as new methods to the inherited ones from Cref.

See also:



generated by LDoc 1.5.0 Last updated 2026-08-30 13:32:16