1.0.1 • Published 3 months ago

prismlog v1.0.1

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

Logo

PrismLog

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
1.0.1

3 months ago

1.0.0

3 months ago