logato 0.0.1
Install from the command line:
Learn more about npm packages
$ npm install @devnshankar/logato@0.0.1
Install via package.json:
"@devnshankar/logato": "0.0.1"
About this version
A simple, fast, and minimal logger for Node.js π. Perfect for logging information, warnings, errors, and more with ease and speed!
npm install logato
- Ensure you have set up GitHub Packages authentication.
- Run the following command to install from GitHub:
npm install logato --registry=https://npm.pkg.github.com
Once installed, you can use the logger in your Node.js project.
import logato from 'logato';
// Using the logger
logato.log('This is a log message');
logato.info('This is an info message');
logato.warn('This is a warning message');
logato.error('This is an error message');
-
logato.log(message)
- Logs a generic message -
logato.info(message)
- Logs an informational message -
logato.warn(message)
- Logs a warning message -
logato.error(message)
- Logs an error message
- Simple: Just a few lines of code to get started.
- Fast: Optimized for speed, ideal for production.
- Minimal: No unnecessary featuresβjust what you need.
MIT License.