superdough: add logger
This commit is contained in:
parent
0c6a0720af
commit
8bdbc9ec4c
5 changed files with 19 additions and 7 deletions
7
packages/superdough/logger.mjs
Normal file
7
packages/superdough/logger.mjs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
let log = (msg) => console.log(msg);
|
||||
|
||||
export const logger = (...args) => log(...args);
|
||||
|
||||
export const setLogger = (fn) => {
|
||||
log = fn;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue