1 | ;
|
2 |
|
3 | function debug(logLevel, ...messages) {
|
4 | if (logLevel === 'debug')
|
5 | console.log(...messages);
|
6 | }
|
7 | function warn(logLevel, warning) {
|
8 | if (logLevel === 'debug' || logLevel === 'warn') {
|
9 | if (typeof process !== 'undefined' && process.emitWarning)
|
10 | process.emitWarning(warning);
|
11 | else
|
12 | console.warn(warning);
|
13 | }
|
14 | }
|
15 |
|
16 | exports.debug = debug;
|
17 | exports.warn = warn;
|