1.0.6 • Published 1 year ago

@74.ankit/super-console v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Super Console

Super Console is a powerful logging tool that enhances your console logs with additional information. It includes:

  • Date and Time: Each log message is prefixed with the local date and time when the log was made.
  • File Name: The name of the file where the log was made.
  • Function Name: The name of the function where the log was made.
  • Line Number: The line number in the file where the log was made.

Installation

You can install Super Console using npm:

npm install @74.ankit/super-console

Usage

Here's an example of how to use Super Console:

const console = require('@74.ankit/super-console');

function function1() {
    console.log("This is a log message.");
}

function function2() {
    console.warn("This is a warning message.");
}

function function3() {
    console.error("This is an error message.");
}

function1();
function2();
function3();

When you run this code, it will output something like this:

> node .\index.js
7/22/24, 7:21:31 PM - index.js:4 - function1 - This is a log message.
7/22/24, 7:21:31 PM - index.js:8 - function2 - This is a warning message.
7/22/24, 7:21:31 PM - index.js:12 - function3 - This is an error message.
1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago