4dev-lib-log

1.0.3 • Public • Published

4dev-lib-log

Serves to create and maintain the log file

Installation

$ npm install --save 4dev-lib-log

Usage

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 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

/4dev-lib-log/

    Package Sidebar

    Install

    npm i 4dev-lib-log

    Weekly Downloads

    1

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    2.92 kB

    Total Files

    4

    Last publish

    Collaborators

    • x-union