diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/hero.mjs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hero.mjs b/src/hero.mjs index 2d1f5be..d97f028 100644 --- a/src/hero.mjs +++ b/src/hero.mjs @@ -29,7 +29,8 @@ export const logit = (writerFn, timestampFn, level, o) => ...o, })); -const now = () => (new Date()).toISOString(); +export const now = () => (new Date()).toISOString(); + export const makeLogger = ({ writerFn = console.error, timestampFn = now, |