Skip to content

A lightweight, customizable logging utility designed to help developers log messages to the console with timestamps, log levels (e.g., info, warn, error), and easy-to-use formatting. Ideal for debugging and tracking application events during development.

Notifications You must be signed in to change notification settings

likhithkp/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logger - Simple and Flexible Logging Package

A simple and flexible logging utility for JavaScript developers. It supports multiple log levels (info, warn, error), customizable log formatting, and allows logging to the console or a file.

Features

  • Supports multiple log levels: info, warn, error
  • Customizable log formats
  • Easy integration and extension

Screenshot from 2024-12-10 18-16-19

Installation

You can install the logger using npm or Yarn:

npm

npm i @likhithkp/logger

Usage

import logger from '@likhithkp/logger';

// Log an informational message
logger.info('Application started successfully');

// Log a warning
logger.warn('Missing config file, using defaults');

// Log an error
logger.error('Failed to connect to the database');

Contributing

Feel free to fork the repository and submit pull requests. If you encounter any issues or have suggestions for new features, open an issue on GitHub.

About

A lightweight, customizable logging utility designed to help developers log messages to the console with timestamps, log levels (e.g., info, warn, error), and easy-to-use formatting. Ideal for debugging and tracking application events during development.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published