1.10.0 • Published 2 years ago

@siyuan-community/zhi-log v1.10.0

Weekly downloads
-
License
GPL
Repository
github
Last release
2 years ago

zhi-lib-log

a simple logger for Node and Browser

Usage

import LogFactory from "@siyuan-community/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

├── @siyuan-community/zhi-device
├── @siyuan-community/zhi-env
├── loglevel
├── callsites
├── loglevel-plugin-prefix
├── ansi-colors
├── kleur

Dev

nx dev zhi-lib-log

Build

nx build zhi-lib-log

Test

Execute the unit tests via vitest

nx test zhi-lib-log

Publish

nx publish zhi-lib-log --ver=0.0.1 --tag=latest
1.10.1

2 years ago

1.10.0

2 years ago