2.1.0 • Published 5 months ago

jst-logger v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

jst-logger

install

yarn add 'jst-logger@tonisives/jst-logger'

about

This is a fork of js-logger. It is a fork of the original js-logger with the following changes:

  • allows both function call logging and string logging
  • If you call with function, eg Logger.info(() => "hello"), then it will be lazyly evaluated

ESM support

This module is rewritten to support ESM imports

To use it, you need to add "moduleResolution": "NodeNext", into your tsconfig.json

import { Logger } from "jst-logger"

Logger.info(() => `Logging level ${Logger.level}`)
Logger.info(`can also use normal string`)

Release to npm

npm run build
npm publish
2.1.0

5 months ago

2.0.0

7 months ago

1.0.0

10 months ago