@pixeloven/node-logger
v6.0.0-beta.3
Published
Node logger
Downloads
33
Readme
@pixeloven/node-logger
Pixel Oven node-logger.
See our website pixeloven-node-logger for more information or the issues associated with this package.
Install
Using npm:
npm install --save @pixeloven/node-logger
or using yarn:
yarn add @pixeloven/node-logger
Usage
Note this package should only be used for node based applications. Using in a client setting may have unintended consequences.
The primary function of this module is to act as a CLI logger. This logger consists of three log levels.
info
- used for standard information and prints normally.warn
- used for warnings and highlights text in yellow.error
- Used for errors and highlights text in red.
import { logger } from "@pixeloven/node-logger";
logger.info("Some stuff happened");
logger.warn("But not danger seems to be approaching");
logger.error("Welp I'm out!");
Each of these methods will print an appropriate icon to at the beginning of each line if the console supports it.