Licence
MIT
Version
1.0.4
Deps
1
Size
18 kB
Vulns
0
Weekly
0
@nishidhx/logger
A lightweight and developer-friendly logging library for Node.js and TypeScript applications. It provides simple, readable log methods that make debugging, monitoring, and tracking application behavior easier.
Support
If you encounter any issues or have feature requests, you can:
- Visit Nishidh Singh: https://xnishidh.space
- Open an issue in this repository
Contributions, bug reports, and feedback are always welcome.
Installation
npm
npm install @nishidhx/loggerYarn
yarn add @nishidhx/loggerBun
bun add @nishidhx/loggerPreview

Usage
Import the logger into your project:
import { logger } from "@nishidhx/logger";Log Levels
| Method | Description |
|---|---|
logger.I() |
Log informational messages. |
logger.D() |
Log debug messages for development and troubleshooting. |
logger.W() |
Log warning messages for non-critical issues. |
logger.E() |
Log error messages when something goes wrong. |
Information
logger.I("This is an info log");Debug
logger.D("This is a debug log");Warning
logger.W("This is a warning log");Error
logger.E("This is an error log");Example Output
[I] This is an info log
[D] This is a debug log
[W] This is a warning log
[E] This is an error log
License
MIT Nishidh Singh