log_utils
v1.0.1
Published
A utility for managing logs and debug process node.js
Downloads
8
Maintainers
Readme
Installation
npm install log_utils
This is useful for managing logs and debug process.
npm install log_utils
var l = require('log_utils');
// #1. Call 'log' function of log_utils.
l.log('hello world');
var data = {
"users": [{
"firstName": "John",
"lastName": "Doe"
}, {
"firstName": "Anna",
"lastName": "Smith"
}]
}
// #2. Console Object
l.logStringify(data);
Output on console :
#1.
LineNumber: 1 // LineNumber from where we call log function.
FunctionName: test // FunctionName from where call the log function.
FileName: var\user\test.js // FileName from where call the log function.
Data: hello world // Data that passed in argument.
#2
LineNumber: 2
FunctionName: null
FileName: var\user\nodejs\test.js
Data: {"users":[{"firstName":"John","lastName":"Doe"},{"firstName":"Anna","lastName":"Smith"}]}
Found a bug?
Encourage you to file any bugs you may find. I will then use all my power to fix it.
I want this module to be the best module ever!