2.1.0 • Published 8 months ago

cryptlogger v2.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

CryptLogger - A JavaScript Logging Library

CryptLogger is a JavaScript logging library that enhances your console logs with colors and emojis. This guide will walk you through how to use CryptLogger in your Node.js projects.

Installation

To get started, you'll need to install the cryptlogger package in your project. Open your terminal and navigate to your project's directory, then run the following command:

npm install cryptlogger

Getting Started

Once you've installed CryptLogger, you can begin using it in your Node.js projects. Here's a step-by-step guide:

  1. Import CryptLogger: Import the CryptLogger class at the top of your JavaScript file:
const CryptLogger = require("cryptlogger");

Create a Logger Instance: Create an instance of the CryptLogger class:

const logger = new CryptLogger();
  1. Log Messages: You can now use the logger to log messages with different log levels. CryptLogger supports the following log levels:
  • warning: Logs a warning message in yellow with a warning emoji.
  • error: Logs an error message in red with a red "X" emoji.
  • success: Logs a success message in green with a checkmark emoji.
  • info: Logs an informational message in blue with an information source emoji. Here's an example of how to use each log level:
logger.warning("This is a warning message");
logger.error("This is an error message");
logger.success("This is a success message");
logger.info("This is an info message");
2.1.0

8 months ago

1.0.0

8 months ago