3.0.2 • Published 4 years ago

webpack-log v3.0.2

Weekly downloads
9,723,068
License
MPL-2.0
Repository
github
Last release
4 years ago

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:

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)

@bufang/skeleton-webpack-plugincomponennenttwackervuedragdropuploadimageswebpack5-hot-clientproject-name-herewebpack-dev-server-http2webpack-passive-middlewarebb-chat@frxf/frxf@texttree/demo-bsa-reference-rclbest-shot-dev-serverseo-renderingcors-proxy-webpack-plugin@l1nyanm1ng/react-picture-viewer@saaspe/componentsqoobee-script@everything-registry/sub-chunk-3131test-carosello-campuswd-webpack5-builderweb-skeleton-screenvue-button-test1webpack-prod-serverwebpack-workspaces-supportwebpack4reactwebsked-webpack-dev-serverwrapped-webpack-bundlersvelte-component-libthe-hottest-webpack-clientvue-compmentvue-dev-clone@dongnl/pawjs@creativestyle/magesuite-frontend-builder@cube-design/react@blkmarketco/components-library@bndynet/version-auto-update-webpack-plugin@beldore/react-otp-input@rbc-public/react-selectable-fastjesusdemojt-webpackjson-to-javascriptkarma-jestkeonkaonjskenote-config-helperstnenopmoc-iustock-ticker-react-widgettuatuaxtingzi-vuepresstinymce-plugin-toyu-library@applaud/webpack-dev-server@amokrushin/koa-webpack@amokrushin/webpack-dev-server@amokrushin/webpack-hot-client@amokrushin/webpack-serve@arielapaula/components@arielapaula/test@allesa/webpack-dev-server@blueking/bk-report-cli@blueking/bkmonitor-cli@bndynet/header-injection-webpack-plugin@carhoo/widget-dealers@4c/start@_gz/upload-sourcemap@dgeibi/critters-webpack-plugin@dannycoates/webpack-dev-serveryumi-webpack-dev-serverwcbwatchinharrison-webpack-hot-clientwebpack-fs-dev-serverwebpack-plugin-auto-importwebpack-dev-server-ssrwebpack-dev-server-thinkgswebpack-dev-server-thinkjswebpack-dev-server-esmwebpack-dev-server-sockhostwebpack-commandwebpack-config-dump-pluginwebpack-cdn-upload-pluginwebpack-hmr-clientwebpack-hot-clientwebpack-hot-client-altwebpack-hot-client5webpack-auto-inject-version-pluginwebuy-page-skeletonwebpack-serve-node6webpack-uiwebpack-typescript-config-dump-pluginverify-img-codevformlmqzoe-skeleton-webpack-plugin@farvater/open-pedigree@gridonic/webpack@iainwilson/awesome-typescript-loader@hatiolab/webpack-hot-client@elsouza1985/react-org-chart@eminemjs/cli@eutrepe/sync-copy-webpack-plugin
3.0.2

4 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.0

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago