@aiet/logging
v1.0.2
Published
Structured logger, JSON/human log formatters, child loggers, and deterministic formatting for AIET
Readme
@aiet/logging
Structured logger, JSON and human-readable log formatters, child loggers, and deterministic log formatting for the AI Engineering Toolkit (AIET).
Installation
pnpm add @aiet/loggingUsage
import { Logger, LogLevel } from "@aiet/logging";
const logger = new Logger({
name: "storage-service",
level: LogLevel.INFO,
formatter: "json", // or "human"
});
logger.info("Database connected", { host: "localhost", port: 5432 });
// Create child logger with bound context
const childLogger = logger.child({ component: "sqlite-migration" });
childLogger.warn("Migration pending", { version: 1 });