Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@holz/log-collector

Latest version: v0.11.2-rc.27.sha-2828ac4

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: psychollama
7 Stars
0 Forks
126 Versions
9.3K Downloads
TypeScript Repo language

Scan summary

@holz/log-collector was last scanned on 27 Nov 2026 at version 0.11.2-rc.27.sha-2828ac4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 126 versions; the latest 5 were published within 6 days (22–27 Nov 2026).
  • Findings: No rules fired in version 0.11.2-rc.27.sha-2828ac4.
  • Downloads: 9,346 downloads.

Versions

126 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.11.2-rc.27.sha-2828ac4 LATEST 27 Nov 2026 No rules fired
0.11.2-rc.26.sha-023d174 25 Nov 2026 No rules fired
0.11.2-rc.25.sha-445e25f 23 Nov 2026 No rules fired
0.11.2-rc.24.sha-8ad739b 22 Nov 2026 Not shown
0.11.2-rc.23.sha-dcb8b2e 22 Nov 2026 Not shown

No rules fired in 0.11.2-rc.27.sha-2828ac4

Findings

Findings for v0.11.2-rc.27.sha-2828ac4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.11.2-rc.27.sha-2828ac4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@holz/log-collector

Supports replacing the global logging destination for all loggers in your app.

Purpose

Let's say you're building an app, and your app uses libraries that manage logs with Holz. Your app uploads logs to a central logging backend and you want to include logs from some of those libraries. That's where @holz/log-collector comes in.

On startup you set a global log collector. Libraries detect this automatically and replace their log destination with whatever you provide. Now you control all logs and can selectively upload to your backend.

Other use cases:

  • Central Log Files: Redirect all server logs to a file, including logs from specific libraries.
  • External Debuggers: Depending on your environment, it may be useful to view logs in a separate application like OTel Desktop Viewer or DebugView. A log collector can act as the central exporter.
  • Interactive TUIs: Renderers like Ink expect control of the screen. Logs can damage rendering. A solution might redirect logs to a file stream or a custom logs window.
  • Patching Broken Logs: If an unexpected input starts throwing errors, you have the ability to patch it without making upstream changes.

Usage in Apps

Set a global log collector as soon as the app starts. This is typically done in the main entry file of your app.

import { setGlobalLogCollector } from '@holz/log-collector';

setGlobalLogCollector({
  // Called for every log in your app so long as `condition` returns true.
  processor: (log) => {
    // ...
  },

  // [Optional] Decide which logs to collect. Defaults to all logs.
  condition: (log) => log.origin[0] === 'some-library',
});
  • processor: Called for every log so long as condition returns true. The signature is a Holz plugin, which means you can pass your app's log pipeline verbatim (whatever you passed to createLogger).
  • condition: A function that decides which logs to collect. By default it captures everything. If it returns false, logs are sent to their original destination.

To remove a global log collector and restore defaults, call unsetGlobalLogCollector:

import { unsetGlobalLogCollector } from '@holz/log-collector';

unsetGlobalLogCollector();

This is primarily used in tests.

Usage in Libraries

[!NOTE] This plugin is included by default with @holz/logger.

This should be the first plugin in your log pipeline.

import { createLogCollector } from '@holz/log-collector';
import { createLogger } from '@holz/core';

const logger = createLogger(
  createLogCollector({
    fallback: (log) => {
      // Default log backend. Called if no global log collector is set.
    },
  }),
);
  • fallback: Called if no global log collector is set, or if condition returns false. This is the default log backend. The signature is a Holz plugin.

The expectation is the collector captures logs before any side effects happen, such as logging to the console or sending to a file.

Be aware that logger.withMiddleware(...) runs before the default logging backend, so take care to avoid side effects in those handlers.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @holz/log-collector

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229