# dl-logger

> A lightweight logger for js application build on top of chalk.js

Latest version **0.2.9** (published 2022-10-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install dl-logger
pnpm add dl-logger
yarn add dl-logger
bun add dl-logger
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.9 |
| Published | 2022-10-23 |
| First published | 2022-10-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 10.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | tyfangXV |
| Maintainers | tyfang |

## Links

- npm: https://www.npmjs.com/package/dl-logger
- Repository: https://github.com/TyFangXV/DL-logger
- Homepage: https://github.com/TyFangXV/DL-logger#readme
- Issues: https://github.com/TyFangXV/DL-logger/issues
- npm.io page: https://npm.io/package/dl-logger

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) 4.1.2
- [moment-timezone](https://npm.io/package/moment-timezone.md) ^0.5.37

## Recent versions

- 0.2.9 (latest) — 2022-10-23
- 0.2.8 — 2022-10-16
- 0.2.7 — 2022-10-14
- 0.2.6 — 2022-10-14
- 0.2.5 — 2022-10-14
- 0.2.1 — 2022-10-14
- 0.2.0 — 2022-10-14
- 0.1.11 — 2022-10-14
- 0.1.10 — 2022-10-14
- 0.1.9 — 2022-10-14
- 0.1.8 — 2022-10-14
- 0.1.7 — 2022-10-14
- 0.1.6 — 2022-10-14
- 0.1.5 — 2022-10-14

## README

# How to use DL-logger


```js
    //You can find the example for logger config file at https://github.com/TyFangXV/DL-logger/blob/main/test/logger.config.json 
    const { default: DLogger } = require("dl-logger");
    const logger = new DLogger(root_to_parent_folder);
```

<b>The logger supports both string and object</b>

## Types of command
<br>

* <b>Warning</b>

```js
    logger.warn("Server is slowing down!!!!")
    logger.warn({message : "SERVER IS SLOWING DOWN!!"});
```
![warning](https://github.com/TyFangXV/DL-logger/blob/main/view/warning.png?raw=true)

<br>


* <b>Message</b>

```js
    logger.show("Cool message");
    log.show({message : "cool Message"})
```
![msg](https://github.com/TyFangXV/DL-logger/blob/main/view/show.png?raw=true)

<br>

* <b>Error</b>

```js
    logger.error("SERVER IS DOWN!!");
    log.error({message : "SERVER IS DOWN!!"});
```
![err](https://github.com/TyFangXV/DL-logger/blob/main//view/error.png?raw=true)

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