# easy-loger

> ReadMe and instruction for easy-loger module

Latest version **2.0.0** (published 2020-09-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install easy-loger
pnpm add easy-loger
yarn add easy-loger
bun add easy-loger
```

## 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 | 2.0.0 |
| Published | 2020-09-30 |
| First published | 2020-09-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dariusz Krąkowski |
| Maintainers | dkrakowski |

## Links

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

## Dependencies (1)

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

## Recent versions

- 2.0.0 (latest) — 2020-09-30
- 1.0.2 — 2020-09-29

## README

ReadMe and instruction for easy-loger module

## Base information:
*Use node.js in v10.x \
*Log file is in main project file \
*Log file name is log.txt

##Wht is easy-loger?
Easy-loger is light engine for create log form application. Logs are in txt file in a configurable path. Log file are created automatic on demand.
The Newest log row is the last row in log.txt.
Configuration for log engine are in .env file.
Config parameter: consolePrint - value "true" - show all log message in system console, "false" - log message are not print in system console
logLevel - value "error" - engine save only error log, "warning" - engine save only warning and error log,
"info" - engine save only info message, "all" - engine save all log message
If console print is running engine show all message  regardless to logLevel.

## How to create log
1.Add easy loger config to .env file, ``` LOG_FILE_PATH=./log.txt 
                                          LOG_LEVEL=all
                                          CONSOLE_LOG_PRINT=true```
2.Add logger module to node ```const log = require('easy-loger');```
3. Add Create Log function ```log.createLog(message, message level)```, where message is string log information, available levels is: info, warning, error.
All Create Log parameter are string and must be in "" !

## Change log
Version | Description
--------|------------
 1.0.1   | Initial version with JSON config file
 1.0.2 |  Fix problem with: log.txt path, package run. Add to read me information how to run package config
 2.0.0  | Change config source to .env file JSON config is not available. Added configurable path for log.txt

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