https://github.com/raicerk/nodlogging
Librería para registrar log en Nodejs en conjunto con PM2
https://github.com/raicerk/nodlogging
log logging nodejs pm2
Last synced: 2 months ago
JSON representation
Librería para registrar log en Nodejs en conjunto con PM2
- Host: GitHub
- URL: https://github.com/raicerk/nodlogging
- Owner: raicerk
- License: mit
- Created: 2019-07-11T20:23:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-07T10:56:26.000Z (almost 4 years ago)
- Last Synced: 2025-10-30T06:09:06.224Z (8 months ago)
- Topics: log, logging, nodejs, pm2
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/nodlogging
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nodlogging
Librery for register Log in Nodejs with `PM2`
# Install
`npm i nodlogging`
# Use
This library has 3 method, when you need indicate a log for info you need use
```
nl.register("my description").info()
```
if you need indicate a log for error, you can use
```
nl.register("my description").error()
```
if you need indicate a log for other reason, you can use
```
nl.register("my description").other()
```
For example this case generate this log in PM2
```
const nl = require('nodlogging');
myfunction = ()=>{
nl.register('My Message').info()
return 'hello world'
}
myfunction()
//DateTime[2019-07-11T17:00:00];File['/myfile.js'];NumberLine[15];Method[myfunction];Type[INFO];Description[My Message]
```