@pokapali/log
v0.1.1
Published
Structured logging for pokapali packages
Readme
@pokapali/log
npm install @pokapali/logZero-dependency structured logging for Pokapali. Provides
a createLogger(module) factory that produces a Logger
with level-filtered debug, info, warn, and error
methods. Output is prefixed with [pokapali:<module>].
Placed as a separate leaf package to avoid dependency
cycles between @pokapali/core and @pokapali/sync.
Key Exports
createLogger(module)— returns aLoggerinstance for the given module nameLogger— interface withdebug(),info(),warn(),error()methodsLogLevel—"debug"|"info"|"warn"|"error"
Configuration
Set the log level via environment variable:
POKAPALI_LOG_LEVEL=debug npx pokapali ...Or programmatically at runtime:
import { setLogLevel } from "@pokapali/log";
setLogLevel("debug");Default level is "info".
