Skip to content

Logato is a lightweight and fast logger for Node.js, designed for easy logging of messages, warnings, errors, and more. It supports color-coded logs, file logging, and even printing file contents directly to the console. Perfect for developers who need a simple and efficient logging solution.

Notifications You must be signed in to change notification settings

devnshankar/logato

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Logato is a lightweight and fast logger for Node.js, designed for easy logging of messages, warnings, errors, and more. It supports color-coded logs, file logging, and even printing file contents directly to the console. Perfect for developers who need a simple and efficient logging solution.

Topics

Resources

Stars

Watchers

Forks

Packages