prismlog
v1.0.1
Published
Colorful and customizable logging for Node.js
Downloads
3
Readme
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 istrue
.
Example:
prismlog.success({ name: "Deployment", description: "Deployment successful", showDate: false});
With Date
Without Date
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