An open API service indexing awesome lists of open source software.

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

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

![uqJBCUUaStUI](https://user-images.githubusercontent.com/57995897/147253284-4b1e8a67-14ab-4942-a85b-eca31e01ed05.png)