Prismlog is a simple logging utility for Node.js applications, providing colorful and formatted console logs.
npm install prismlog
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" });
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});
This project is licensed under the MIT License - see the LICENSE file for details.
Remii - Homepage
Discord - Add Me As Friends
GitHub - View On GitHub
- chalk
- clear