@netio/logger
v1.0.2
Published
Simple logger for Node and the browser.
Downloads
2
Readme
Overview
Simple logger for the browser and node.
- Works in terminal and the browser.
- No dependencies.
- Use ES6 template literals (
`hello ${json}`
) to log rich interactive objects in the log.
Usage
npm install @netio/logger
const { Logger } = require("@netio/logger");
const logger = new Logger("foo.bar");
logger.info`Hello World!`;
API
logger.debug`Debug`;
logger.info`Info`;
logger.success`Success`;
logger.warn`Warn`;
logger.error`Error`;