Skip to content

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

License

Notifications You must be signed in to change notification settings

koimoee/PrismLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published