1.0.4 • Published 3 years ago

logs_hub_nodejs v1.0.4

Weekly downloads
4
License
-
Repository
-
Last release
3 years ago

Custom Logs File generator for LOGS HUB Node js

Installation

npm i logs_hub_nodejs

Available functions

We have 4 types of logs:

  • warning
  • error
  • critical
  • info

Function Parameters

For each function we have five parameters three of them are required and the others are optional

  • message (*)
  • level (*)
  • application (*)
  • user_id
  • extra_data

env file

The file contains the path of logs file and code for each level

Usage & Examples

  • const logs=require("dmmil_logs")

  • logs.warning("MESSAGE","NEWS",3,{"key":"value"});

  • logs.error("MESSAGE","NEWS",3);
  • logs.info("MESSAGE","NEWS");
  • logs.critical("MESSAGE","NEWS",null,{"key":"value"});

License

Odai Atef Free to use

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

4 years ago