A logger for the Webpack ecosystem
Last updated a year ago by shellscape .
MPL-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install webpack-log 
SYNC missed versions from official npm registry.

tests cover size libera manifesto


A logger for the Webpack ecosystem.

Please consider donating if you find this project useful.


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


Using npm:

npm install webpack-log --save-dev


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



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:


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


Type: String
Default: <webpack-log>

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


Type: Boolean
Default: false

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


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.



LICENSE (Mozilla Public License)

Current Tags

  • 3.0.1                                ...           latest (a year ago)

10 Versions

  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.0.0                                ...           2 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Today 3,303
This Week 150,099
This Month 394,990
Last Day 9,417
Last Week 148,998
Last Month 667,583
Dependencies (3)
Dev Dependencies (12)
Dependents (119)

Copyright 2014 - 2016 © taobao.org |