Holds the resolved ServerLogLevel (from telemetry.level) and exposes
a small surface for level-gated logging, startup phase-timing capture, and the
compact summary block printed once at the end of boot.
This is deliberately NOT a BaseSingleton and does NOT touch
@memberjunction/core logging internals — it is a thin, process-local gate
that wraps console.* / LogStatus. The point is the gating, not a new
logging framework.
Usage:
constlogger = newStartupLogger(); logger.LogIf('verbose', 'Registered auth provider: azure'); constt = logger.StartPhase(); // ... work ... logger.EndPhase('DB Pool Connect', t); logger.PrintSummary();
MJServer-local startup + per-request log gating helper.
Holds the resolved ServerLogLevel (from
telemetry.level) and exposes a small surface for level-gated logging, startup phase-timing capture, and the compact summary block printed once at the end of boot.This is deliberately NOT a
BaseSingletonand does NOT touch@memberjunction/corelogging internals — it is a thin, process-local gate that wrapsconsole.*/LogStatus. The point is the gating, not a new logging framework.Usage: