Member Junction
    Preparing search index...

    Type Alias StartupSummarySnapshot

    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 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:

    const logger = new StartupLogger();
    logger.LogIf('verbose', 'Registered auth provider: azure');
    const t = logger.StartPhase();
    // ... work ...
    logger.EndPhase('DB Pool Connect', t);
    logger.PrintSummary();
    type StartupSummarySnapshot = {
        Level: ServerLogLevel;
        PhaseTimings: ReadonlyArray<PhaseTiming>;
        Summary: Readonly<StartupSummaryData>;
        TotalStartupMs: number;
    }
    Index

    Properties

    Level: ServerLogLevel
    PhaseTimings: ReadonlyArray<PhaseTiming>
    Summary: Readonly<StartupSummaryData>
    TotalStartupMs: number