0.0.3 โ€ข Published 6 months ago

logato v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Simple Logger (logato) ๐Ÿ“œ

logato banner

A simple, fast, and minimal logger for Node.js ๐Ÿš€. Perfect for logging information, warnings, errors, and more with ease and speed!

npm downloads

Installation ๐Ÿš€

npm

npm install logato

yarn

yarn add logato

pnpm

pnpm add logato

bun

bun add logato

Install from GitHub registry:

  1. Ensure you have set up GitHub Packages authentication.
  2. Run the following command to install from GitHub:
npm install @devnshankar/logato@0.0.3 --registry=https://npm.pkg.github.com 

Usage ๐Ÿ“„

Once installed, you can use the logger in your Node.js project.

import logato from 'logato';

// Logging to console
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.debug('This is a debug message');
logato.success('Operation was successful!');

// Print contents of a file
// make sure the assets folder is in the root of the project 
logato.file('./assets/data.txt');

Methods:

  • 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

Features โœจ

  • 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.

License ๐Ÿ“

MIT License.

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago