adv-logger

1.3.31 • Public • Published

adv-logger

Build Status

A simple utility method for logging similar to console.log , but with file name, line number, custom typeof and random color.

this utility writes using process.stdout.write, which allows you to overwrite your console.log if you desire.

it is only 125 lines long and uses 0 dependencies

alt text

Usage

1.3.2 - features : 0 dependencies, only 125 lines long!. 1.3.27 - features : removed path resolving and added boolean type. 1.3.29 - fixed console color output. the logger will automatically stringify everything for you except functions and multi-lines. First, install the package using npm:

npm install adv-logger --save

Then, require it and use it like so:

const log = require('adv-logger');

alt text

Output

logger will return one the next types for easier debugging:

['number','string','object','array','multi-line','date','null','undefined','boolean','error']

alt text

Dependents (1)

Package Sidebar

Install

npm i adv-logger

Weekly Downloads

3

Version

1.3.31

License

ISC

Last publish

Collaborators

  • yurik1992