@unly/utils-simple-logger
v1.4.0
Published
Simple Logger
Readme
Utils Simple Logger
Logger based on Winston with sane default so that it only logs error in production and filter other logs, while keeping them all in non-production environments.
Basically avoids to increase cost by logging too much stuff in production.
Getting started
npm or yarn
npm install @unly/utils-simple-loggerUse:
const logger = require('@unly/utils-simple-logger');API
Contributing
We gladly accept PRs, but please open an issue first so we can discuss it beforehand.
Getting started
yarn start # Shortcut - Runs linter + build + tests in concurrent mode (watch mode)
OR run each process separately for finer control
yarn lint
yarn build
yarn testTest
yarn test # Run all tests, interactive and watch mode
yarn test:once
yarn test:coverageReleasing and publishing
yarn releaseAndPublish # Shortcut - Will prompt for bump version, commit, create git tag, push commit/tag and publish to NPM
yarn release # Will prompt for bump version, commit, create git tag, push commit/tag
npm publish # Will publish to NPMLicense
MIT
