@zedtech/zedkit-observability
Log without importing a backend
A small `Logger` port with noop, console, and in-memory adapters.
alpha
Usage
At a glance
- Who: TypeScript services and apps that should not import a logging SDK in feature code.
- What: A small
Loggerport with noop, console, and in-memory adapters. - Use when: Any module that needs structured logs but should stay testable.
- Avoid when: When you only need one
console.login a throwaway script.
Install
pnpm add @zedtech/zedkit-observabilityLatest: 0.1.0 (via changesets).
Example
import { createMemoryLogger, type Logger } from "@zedtech/zedkit-observability";
const { logger, entries } = createMemoryLogger();
logger.info("ready", { port: 3000 });Wraps: (none)