Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
365 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | const log = require('webpack-log');
|
---|
4 |
|
---|
5 | function createLogger(options = {}) {
|
---|
6 | let level = options.logLevel || 'info';
|
---|
7 |
|
---|
8 | if (options.noInfo === true) {
|
---|
9 | level = 'warn';
|
---|
10 | }
|
---|
11 |
|
---|
12 | if (options.quiet === true) {
|
---|
13 | level = 'silent';
|
---|
14 | }
|
---|
15 |
|
---|
16 | return log({
|
---|
17 | name: 'wds',
|
---|
18 | level,
|
---|
19 | timestamp: options.logTime,
|
---|
20 | });
|
---|
21 | }
|
---|
22 |
|
---|
23 | module.exports = createLogger;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.