minimal-ts-logger
v1.0.0
Published
A lightweight and colorful logger built with TypeScript, supporting log levels and timestamps.
Maintainers
Readme
simple-logger
- A lightweight, customizable console logger built with TypeScript.
- Supports log levels, colored output, optional timestamps, and easy configuration.
Features
- Log levels:
debug,info,success,warn,error - Colored output in the terminal
- Optional ISO timestamp logging
- Easy to enable/disable logging
Usage
import logger from 'simple-logger';
logger.info('This is an info message');
logger.success('Operation completed successfully');
logger.warn('This is a warning');
logger.error('Something went wrong');
logger.debug('Debugging details...');Advance Usage
const logger = new Logger({
enabled: true,
timestamp: true,
logLevel: 'info'
});Installation
- npm install simple-logger
OR
- yarn install simple-logger
License
This project is licensed under the MIT License © 2025 Nikhil Joglekar.
