1 | /*eslint no-use-before-define:0 */
|
2 |
|
3 | const log = (items) => {
|
4 | if (!api.silent) { console.log(items.join(" ")); }
|
5 | };
|
6 |
|
7 |
|
8 | /**
|
9 | * Stub log shim.
|
10 | * Pipe these log items into a proper service log.
|
11 | */
|
12 | const api = {
|
13 | silent: false,
|
14 | info(...items) { log(items); },
|
15 | warn(...items) { log(items); },
|
16 | error(...items) { log(items); }
|
17 | };
|
18 |
|
19 |
|
20 |
|
21 | export default api;
|