Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jsenv/logger

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/logger - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

2

package.json
{
"name": "@jsenv/logger",
"version": "4.0.1",
"version": "4.1.0",
"description": "Control verbosity of logs during a function execution.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -5,19 +5,4 @@ # logger

[![github package](https://img.shields.io/github/package-json/v/jsenv/jsenv-logger.svg?logo=github&label=package)](https://github.com/jsenv/jsenv-logger/packages)
[![npm package](https://img.shields.io/npm/v/@jsenv/logger.svg?logo=npm&label=package)](https://www.npmjs.com/package/@jsenv/logger)
[![github ci](https://github.com/jsenv/jsenv-logger/workflows/ci/badge.svg)](https://github.com/jsenv/jsenv-logger/actions?workflow=ci)
[![codecov coverage](https://codecov.io/gh/jsenv/jsenv-logger/branch/master/graph/badge.svg)](https://codecov.io/gh/jsenv/jsenv-logger)
# Table of contents
- [Presentation](#Presentation)
- [Installation](#installation)
- [Documentation](#usage)
- [createLogger](#createLogger)
- [logLevel](#logLevel)
- [logger](#logger)
- [Migration from console](#migration-from-console)
# Presentation
You want to use `@jsenv/logger` when you have many logs with different purposes and controls which type of logs are actually written.

@@ -30,3 +15,3 @@

```console
npm install @jsenv/logger@3.3.1
npm install @jsenv/logger
```

@@ -33,0 +18,0 @@

@@ -66,15 +66,15 @@ import {

const debug = console.debug
const debug = (...args) => console.debug(...args)
const debugDisabled = () => {}
const info = console.info
const info = (...args) => console.info(...args)
const infoDisabled = () => {}
const warn = console.warn
const warn = (...args) => console.warn(...args)
const warnDisabled = () => {}
const error = console.error
const error = (...args) => console.error(...args)

@@ -81,0 +81,0 @@ const errorDisabled = () => {}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc