# logs_hub_nodejs

> ### Installation

Latest version **1.0.4** (published 2021-09-02) · 0 weekly downloads

## Install

```sh
npm install logs_hub_nodejs
pnpm add logs_hub_nodejs
yarn add logs_hub_nodejs
bun add logs_hub_nodejs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-09-02 |
| First published | 2020-10-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Odai Atef |
| Maintainers | odai-atef |

## Links

- npm: https://www.npmjs.com/package/logs_hub_nodejs
- npm.io page: https://npm.io/package/logs_hub_nodejs

## Dependencies (1)

- [dotenv](https://npm.io/package/dotenv.md) ^8.2.0

## Recent versions

- 1.0.4 (latest) — 2021-09-02
- 1.0.3 — 2021-07-01
- 1.0.2 — 2021-07-01
- 1.0.1 — 2020-10-05

## README

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

---
_Source: https://npm.io/package/logs_hub_nodejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
