@fal-works/tiny-logger
v0.1.3
Published
Emit logs with prefix.
Downloads
4
Readme
tiny-logger
Creates custom functions that emit logs with prefix.
on Node.js
import * as logger from "@fal-works/tiny-logger";
const log = logger.create("[any prefix]", process.stdout, console.log);
const logSimple = logger.createSimple("[any prefix]", process.stdout);
on browsers
import * as logger from "@fal-works/tiny-logger";
const log = logger.create("[any prefix]", console.log);