Skip to main content

What this group covers

Use these modules when you need visibility into runtime behavior without dragging observability concerns into every feature module.

Logger

Structured logging for browser and Node.js with namespaces, levels, transports, and child loggers.

Profiler

Execution timing, checkpoints, and performance measurement for async and sync work.

Quick example

import { createLogger } from "bytekit";
import { Profiler } from "bytekit/profiler";

const logger = createLogger({ namespace: "checkout", level: "debug" });

const profiler = new Profiler("checkout");
profiler.start("create-payment");

await createPayment();

profiler.end("create-payment");
logger.info("Payment created", profiler.summary());
Combine Logger and Profiler to emit structured timing data alongside your application logs.