https://github.com/sairajchouhan/node-dev-logger
Simple logger for Node.js that prints the filename and line number of the log
https://github.com/sairajchouhan/node-dev-logger
logger logging nodejs
Last synced: 5 months ago
JSON representation
Simple logger for Node.js that prints the filename and line number of the log
- Host: GitHub
- URL: https://github.com/sairajchouhan/node-dev-logger
- Owner: sairajchouhan
- License: mit
- Created: 2021-11-29T12:05:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-25T12:27:00.000Z (over 4 years ago)
- Last Synced: 2026-01-12T04:59:54.227Z (6 months ago)
- Topics: logger, logging, nodejs
- Language: TypeScript
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-dev-logger
Simple logger for Node.js that prints the filename and line number of the log
# Installation
Instal the packge by running `npm i -D nice-node-logger` or `yarn add -D nice-node-logger`
# Usage
```js {.line-numbers}
// myFile.js
const { logger } = require('nice-node-logger')
logger.log('Hello world')
//
logger.info('Hello world')
//
logger.warn('Hello world')
//
logger.error('Hello world')
```
# Result
