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.
- Supports multiple log levels:
info
,warn
,error
- Customizable log formats
- Easy integration and extension
You can install the logger using npm or Yarn:
npm i @likhithkp/logger
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');
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.