Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

webpack-log

Package Overview
Dependencies
3
Maintainers
1
Versions
11
Issues
File Explorer

Advanced tools

webpack-log

A logger for the Webpack ecosystem

    3.0.2latest

Version published
Maintainers
1
Weekly downloads
8,191,912
decreased by-10.77%

Weekly downloads

Readme

Source
webpack-log

tests cover size libera manifesto

webpack-log

A logger for the Webpack ecosystem.

Please consider donating if you find this project useful.

Requirements

This module requires an LTS Node version (v8.0.0+).

Install

Using npm:

npm install webpack-log --save-dev

Usage

Create a new logger and use it to log something wild:

const getLogger = require('webpack-log'); const log = getLogger({ name: 'webpack-batman' }); log.info('Jingle Bells, Batman Smells'); log.warn('Robin laid an egg'); log.error('The Batmobile lost a wheel'); log.debug('And the Joker got away');

And there will appear magic in your console:

console magic

Options

level

Type: String
Default: info

Specifies the level the logger should use. A logger will not produce output for any log level beneath the specified level. Valid level names, and their order are:

[ 'trace', 'debug', 'info', 'warn', 'error', 'silent' ]

For example, If a level was passed as { level: 'warn'} then only calls to warn and error will be displayed in the terminal.

name

Type: String
Default: <webpack-log>

Specifies the name of the logger to create. This value will be part of the log output prefix.

timestamp

Type: Boolean
Default: false

If true, the logger will display a timestamp for log output, preceding all other data

unique

Type: Boolean
Default: true

If false, the logger will use cached versions of a log with the same name. Due to the nature of the webpack ecosystem and multiple plugin/loader use in the same process, loggers are created as unique instances by default.

Meta

CONTRIBUTING

LICENSE (Mozilla Public License)

Keywords

FAQs

What is webpack-log?

A logger for the Webpack ecosystem

Is webpack-log popular?

The npm package webpack-log receives a total of 6,559,337 weekly downloads. As such, webpack-log popularity was classified as popular.

Is webpack-log well maintained?

We found that webpack-log demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 11 Mar 2021

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc