1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| 'use strict';
|
| const log = require('webpack-log');
|
| function createLogger(options = {}) {
| let level = options.logLevel || 'info';
|
| if (options.noInfo === true) {
| level = 'warn';
| }
|
| if (options.quiet === true) {
| level = 'silent';
| }
|
| return log({
| name: 'wds',
| level,
| timestamp: options.logTime,
| });
| }
|
| module.exports = createLogger;
|
|