3.0.2 • Published 5 years ago

webpack-log v3.0.2

Weekly downloads
9,723,068
License
MPL-2.0
Repository
github
Last release
5 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@blkmarketco/components-library@bndynet/version-auto-update-webpack-plugin@beldore/react-otp-input@rbc-public/react-selectable-fastjesusdemojt-webpackjson-to-javascriptkarma-jestkeonkaonjskenote-config-helperimage-handler-loaderhot-zone-vuehollow-cliinsert-cdn-webpack-pluginlitepie-datepicker-gabelocaltunnel-webpack-pluginmacross-bundlerm2m-chartjs-plugin-crosshairkrown_login_library@windcommerce/ecommerce-wind-builder@windcommerce/theme-ecommerce@what-src/webpack-plugin@webpack-contrib/cli-utils@webpack-contrib/config-loader@webpack-contrib/schema-utils@webpackery/core@wsparks/fabuild@udooku/react-image-comparison-slider@tuax/plugin-vite@tuax/plugin-vite6@torgeircook/cssjson@tonysusi/vapid@thefoxjob/webpack-dev-middleware@vidazoo/webpack-ast-traversal-plugin-core@vitali_shcherbina/styled-libb2x-utilsawesome-typescript-loaderap-vue-captchaappcharge-checkout@4c/start@gridonic/webpack@_gz/upload-sourcemap@creativestyle/magesuite-frontend-builder@allesa/webpack-dev-server@hatiolab/webpack-hot-client@amokrushin/koa-webpack@amokrushin/webpack-dev-server@amokrushin/webpack-hot-client@amokrushin/webpack-servestnenopmoc-iustock-ticker-react-widgettuatuaxtingzi-vuepresstinymce-plugin-toyu-library@blueking/bk-report-cli@blueking/bkmonitor-cli@bndynet/header-injection-webpack-plugin@carhoo/widget-dealersyumi-webpack-dev-serverwcbwatchinharrison-webpack-hot-clientwebpack-fs-dev-serverwebpack-plugin-auto-importwebpack-dev-server-ssrwebpack-dev-server-thinkgswebpack-dev-server-thinkjs
3.0.2

5 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.0

7 years ago

1.2.0

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago