1.1.4 • Published 1 year ago

colorfull-logger v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Colorful Logger

A simple Node.js package for enhancing console logging with colors using the popular chalk library.

Installation

npm install chalk colorful-logger

const colorfulLogger = require('colorful-logger');

Log an informational message
colorfulLogger.log('This is an informational message.');

Log a success message
colorfulLogger.success('Operation successful!');

Log a warning message
colorfulLogger.warning('Proceed with caution!');

Log an error message
colorfulLogger.error('An error occurred.');

Customization

The logger provides the following log types:

    info (default): Blue
    success: Green
    warning: Yellow
    error: Red

You can customize the colors by modifying the this.colors object in the ColorfulLogger class

Example: 

colorfulLogger.log('Customized message', 'success');
1.1.4

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago