UNPKG

355 BJavaScriptView Raw
1/*eslint no-use-before-define:0 */
2
3const 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 */
12const api = {
13 silent: false,
14 info(...items) { log(items); },
15 warn(...items) { log(items); },
16 error(...items) { log(items); }
17};
18
19
20
21export default api;