prismlog

1.0.1 • Public • Published

Logo

PrismLog

Documentation Maintenance License: MIT NPM Version NPM Downloads

Prismlog is a simple logging utility for Node.js applications, providing colorful and formatted console logs.

Installation

npm install prismlog

Usage

const prismlog = require('prismlog'); //or const { warn, log, success, error } = require("prismlog");

prismlog.success({ name: "Deployment", description: "Deployment successful" });
prismlog.log({ name: "Server", description: "Server started on port 3000" });
prismlog.warn({ name: "Security", description: "Potential security vulnerability detected" });
prismlog.error({ name: "Database", description: "Database connection failed" });

Configuration

Users can configure the behavior of the log messages by providing optional parameters:

  • showDate: Show or hide the date in the log message. Default is true.

Example:

prismlog.success({ name: "Deployment", description: "Deployment successful", showDate: false});

With Date

Sample

Without Date

Sample

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Remii - Homepage
Discord - Add Me As Friends
GitHub - View On GitHub

Credits

  • chalk
  • clear

Readme

Keywords

Package Sidebar

Install

npm i prismlog

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

12.2 kB

Total Files

7

Last publish

Collaborators

  • karisuu