zhi-log
TypeScript icon, indicating that this package has built-in type declarations

1.14.21 • Public • Published

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

/zhi-log/

    Package Sidebar

    Install

    npm i zhi-log

    Weekly Downloads

    16

    Version

    1.14.21

    License

    MIT

    Unpacked Size

    47 kB

    Total Files

    13

    Last publish

    Collaborators

    • terwer-org