Skip to content

logato 0.0.3

Install from the command line:
Learn more about npm packages
$ npm install @devnshankar/logato@0.0.3
Install via package.json:
"@devnshankar/logato": "0.0.3"

About this version

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/[email protected] --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.

Details


Assets

  • logato-0.0.3.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all