@pixeloven-core/logger
TypeScript icon, indicating that this package has built-in type declarations

6.4.0 • Public • Published

@pixeloven-core/logger

Pixel Oven core logger

See our website PixelOven for more information or our issues board to report 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.

  1. info - used for standard information and prints normally.
  2. warn - used for warnings and highlights text in yellow.
  3. error - Used for errors and highlights text in red.
import { logger } from "@pixeloven-core/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.

Readme

Keywords

none

Package Sidebar

Install

npm i @pixeloven-core/logger

Weekly Downloads

18

Version

6.4.0

License

MIT

Unpacked Size

145 kB

Total Files

18

Last publish

Collaborators

  • briangeb