4dev-lib-log
v1.0.3
Published
Serves to create and maintain the log file
Downloads
39
Maintainers
Readme
4dev-lib-log
Serves to create and maintain the log file
Installation
$ npm install --save 4dev-lib-log
Usage
Two arguments are transmitted:
- Text or array
- Type of message in the form of text
This method will create a file named Log.log and write down the text of the message. Any subsequent messages will be added to the next line.
var fd_lib_log = require('4dev-lib-log')
async function write()
{
console.log("test: 4dev-lib-log.write")
/*
Two arguments are transmitted
1. Text or array
2. Type of message in the form of text
This method will create a file named Log.log and write down the text of the message. Any subsequent messages will be added to the next line.
*/
var r = await fd_lib_log.write('test log', 'error')
console.log(r)
}
write()
License
ISC © Denis