@webpack-bundle-analyzer/logger
Logger class used by webpack-bundle-analyzer
Last updated 3 years ago by valscion .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @webpack-bundle-analyzer/logger 
SYNC missed versions from official npm registry.

@webpack-bundle-analyzer/logger

Logging implementation used in webpack-bundle-analyzer.

Install

npm install --save @webpack-bundle-analyzer/logger

Usage

const Logger = require('@webpack-bundle-analyzer/logger');

// Possible logging levels are 'info', 'warn', 'error' and 'silent'.
const logger = new Logger('info');

logger.info('Informative message');
logger.warn('Warning, something is not right!');
logger.error('An error happened!');

Options

new Logger(level: LogLevel);
Name Type Description
level One of: info, warn, error, silent The logging level to use. info displays all log messages, warn displays only .warn and .error logs, error displays only .error logs and silent displays none.

Maintainers


Yuriy Grunin

Vesa Laakso

Current Tags

  • 3.0.0-alpha.2                                ...           latest (3 years ago)

1 Versions

  • 3.0.0-alpha.2                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |