0.1.7 • Published 4 years ago

console-it-better v0.1.7

Weekly downloads
2
License
MIT
Repository
github
Last release
4 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

4 years ago

0.1.6

4 years ago

0.1.4

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago

0.1.1

4 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago