zhi-log
v1.14.21
Published
a simple logger for Node and Browser
Downloads
13
Readme
zhi-log
a simple logger for Node and Browser
Usage
import { LogFactory } from "zhi-log"
const env = new Env(import.meta.env)
const logger = LogFactory.defaultLogger(env)
logger.debug("debug msg")
logger.info("info msg")
logger.error("error msg")
Deps
├── zhi-device
├── zhi-env
├── loglevel
├── callsites
├── loglevel-plugin-prefix
├── ansi-colors
├── kleur
Dev
pnpm dev -F zhi-log
Build
pnpm build -F zhi-log
Api
pnpm doc -F zhi-log
pnpm md -F zhi-log
Test
Execute the unit tests via vitest
pnpm test -F zhi-log
Publish
pnpm publish -F zhi-log --tag=latest