New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@unly/utils-simple-logger

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unly/utils-simple-logger

Simple Logger

latest
Source
npmnpm
Version
1.4.0
Version published
Maintainers
3
Created
Source

Build Status Maintainability Test Coverage

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-logger

Use:

const logger = require('@unly/utils-simple-logger');

API

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 test

Test

yarn test # Run all tests, interactive and watch mode
yarn test:once
yarn test:coverage

Releasing 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 NPM

License

MIT

FAQs

Package last updated on 15 Nov 2019

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