@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');
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