1.0.6 • Published 2 years ago

inet-logger v1.0.6

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

inet-logger

This is a repository used to follow the code used by the npm package "inet-logger"

How to install

Once the node project is created use the following command to install the package :

npm install inet-logger

Usage

Once installed, import the service on all required files then use the "print" method to start logging. Parameters of the method : message: The message to log (can be of any data type) filePath: The path to the file on which to add the logs. If not found, the file is created

Example :

const log = require('inet-logger');

function myMethod(args) {
    log.print('/home/username/app.log', "Some Nice log messages");
    log.print('/home/username/app.log', args);
}

Development

In order to change this package, an npm account is required here NPM After cloning the repo, modify the code as needed, then update the version inside package.json file and push it using

npm publish
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago