Sets the verbosity threshold.
Accepts "debug", "info", "warn", "error" and "production", case-insensitively.
⚠️ "production" is not a level of its own: it sets the threshold to warn and
turns quiet mode on, so it is the only value with a side effect beyond the threshold.
An unrecognised value logs a warning and leaves the level unchanged.
The level name.
The current threshold, as its numeric value from LEVELS.
0 (DEBUG), 1 (INFO), 2 (WARN) or 3 (ERROR).
The current threshold, as its name.
⚠️ Reports the threshold, not the mode: after setLevel("production") this returns
"WARN", and nothing here reveals that quiet mode was switched on with it.
"DEBUG", "INFO", "WARN" or "ERROR".
Turns repetition damping on or off, independently of the level.
With it on, messages matching the module's repetitive-message patterns are shown a couple of times and then counted silently until LogImplInterface.showSummary.
true to damp repetitive messages.
The recent entries of the log's record, oldest first — at most 500, secrets redacted.
Warnings and errors are recorded whatever the level; info and debug when they reach the
console. The boot logger feeds the same record, and so do uncaught errors and unhandled
rejections from GeoLeaf.boot() on. Unlike the console, the record is readable without
developer tools: it is what the boot failure screen hands over in its diagnostic.
A copy: changing it changes nothing in the record.
The recent entries as a JSON document, ready to hand to support.
{ format: "geoleaf-log", formatVersion: 1, time, level, entries }, pretty-printed,
where level is the current threshold and entries what
LogImplInterface.getEntries returns.
The shape of
GeoLeaf.Log— a level-filtered console with repetition damping.Two independent mechanisms decide whether a call reaches the console: the level threshold (LogImplInterface.setLevel) and, for messages recognised as repetitive, a grouping counter that suppresses them after a few occurrences and reports the totals through LogImplInterface.showSummary. A message can therefore be dropped even at a permissive level.
What reaches the console is also recorded — and warnings and errors always are, whatever the level: LogImplInterface.getEntries reads that record back.