0.1.7 • Published 5 years ago

console-it-better v0.1.7

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

console-it-better

The best way to console log your data in CLI

Provide to your cli logs more information, such as:

  • Date timestamps
  • File name and line number
  • more in future :)

Easy configuration, backwards compatibility - will works on your old projects ;).

Installation

npm install console-it-better --save

Configuration

The basic configuration for better logging is to add timestamp to your logs, and add file and line number of log.

import {ConsoleItBetter, DateProcessor, FileInfoProcessor} from 'console-it-better';

new ConsoleItBetter(
  {
    overrideConsole: true,
    processors: [
      (new FileInfoProcessor()),
      (new DateProcessor()),
    ]
  },
);

If you are using flag overrideConsole and it is set to true you will override console.log, console.warn, console.error in all your code scope.

0.1.7

5 years ago

0.1.6

5 years ago

0.1.4

5 years ago

0.1.5

5 years ago

0.1.2

5 years ago

0.1.0

5 years ago

0.1.1

5 years ago

0.0.8

5 years ago

0.0.5

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago