logx-js

1.0.1 • Public • Published

logx

*THIS PACKAGE HAS BEEN RENAMED TO ampelstatus

Simple, pretty, traffic-light logger

logx is an incredably lightweight traffic-light pattern logger, only a single, 7-element object in memory

Example

logx=require('logx');

logx.err('This is an error');
logx.inf('The process ran succesfully');
logx.wrn('You forgot to brush your teeth.');

Commands

Common Functionality: all of the functions have an optional second argument that redirects to stdout instead of stderr when it is set to true.

err

Prints red, bold ERR: next to the output. It's designed for any fatal errors

wrn

Prints yellow, bold WRN: next to the output. Designed for non-fatal errors and warnings.

inf

Prints green, bold INF: next to the output. Designed for successful processes.

Readme

Keywords

none

Package Sidebar

Install

npm i logx-js

Weekly Downloads

0

Version

1.0.1

License

LGPL-3.0-or-later

Unpacked Size

1.89 kB

Total Files

3

Last publish

Collaborators

  • atlas69