npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vobs/logger

v1.8.18

Published

Structured, transport-based logging for Vobs applications.

Readme

@vobs/logger

Structured, level-filtered logging with pluggable transports, context scoping, and default redaction.

Install

npm install @vobs/logger

Quick start

import { createLogger, createMemoryTransport } from '@vobs/logger'

const memory = createMemoryTransport(100)
const logger = createLogger({
  level: 'info',
  context: { app: 'console' },
  transports: [memory]
})

const request = logger.child({ requestId: 'request-1' })
request.warn('request failed', { status: 503 })
await logger.flush()

API

| Signature | Description | | --- | --- | | createLogger(options?: LoggerOptions): Logger | Creates a logger; defaults to level 'info' and a console transport. | | logger.level: LogLevel | Minimum level: 'debug', 'info', 'warn', or 'error'. | | logger.log(level, message, context?) / debug / info / warn / error | Emit entries; below-level calls are dropped. | | logger.child(context: LogContext): Logger | Returns a logger whose entries merge the parent and child context. | | logger.flush(): Promise<void> | Waits for pending async writes, then calls flush on each transport. | | logger.dispose(): void | Stops the logger; the root logger also disposes owned transports. | | createConsoleTransport(target?: ConsoleLike): LogTransport | Writes [level] message plus context to a console-like target. | | createMemoryTransport(limit?): MemoryLogTransport | Keeps entries in a ring buffer with entries and clear(). | | loggerPlugin(options?): VobsPlugin | Provides the logger through LOGGER_KEY. | | useLogger(): Logger | Injects the logger inside components. |

Context objects are sanitized before writing: sensitive keys (password, token, authorization, cookie, and more, extendable via redactKeys) become [REDACTED], circular references become [Circular], depth is capped by maxDepth (default 8), and Error/Date values are serialized. Transport write and flush failures are reported through onTransportError and never make logging throw.

Types

Logger, LogLevel, LogEntry, LogContext, LogObject, LogValue, LogTransport, ConsoleLike, MemoryLogTransport, LoggerOptions, LoggerPluginOptions, LoggerErrorCode