kernl API
    Preparing search index...

    Function createGuardLog

    • The guard log: the newest events, a window's quarantine, and a count that keeps going after the oldest events are dropped. Kept in memory only.

      Parameters

      • keep: number = 50

        How many events to keep; 50 by default.

      Returns GuardLog

      An empty log.

      const log = createGuardLog();
      kernl.guard.events$.subscribe((event) => log.push(event));
      log.quarantined$.subscribe((windows) => draw(windows));