Socket
Book a DemoInstallSign in
Socket

zhi-log

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zhi-log

a simple logger for Node and Browser

latest
Source
npmnpm
Version
1.14.22
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

zhi-log

FAQs

Package last updated on 03 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts