# parrot-logger

> Lightweight logger module.

Latest version **1.0.0** (published 2020-06-17) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-06-17 |
| First published | 2020-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | InkoHX |
| Maintainers | inkohx |
| Keywords | logger, color, logging, console |

## Links

- npm: https://www.npmjs.com/package/parrot-logger
- Repository: https://github.com/InkoHX/parrot-logger
- Homepage: https://github.com/InkoHX/parrot-logger#readme
- Issues: https://github.com/InkoHX/parrot-logger/issues
- Funding: https://www.patreon.com/inkohx
- npm.io page: https://npm.io/package/parrot-logger

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [dayjs](https://npm.io/package/dayjs.md) ^1.8.20
- [deepmerge](https://npm.io/package/deepmerge.md) ^4.2.2
- [utility-types](https://npm.io/package/utility-types.md) ^3.10.0

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-06-17
- 0.0.5 — 2020-06-17
- 0.0.3 — 2020-02-11
- 0.0.2 — 2020-02-10
- 0.0.1 — 2020-02-10

## README

<div
  align="center"
>

![ParrotLogger](https://github.com/InkoHX/parrot-logger/blob/master/media/ParrotLogger.png?raw=true)

![CI](https://github.com/InkoHX/parrot-logger/workflows/CI/badge.svg)
![LICENCE](https://img.shields.io/github/license/InkoHX/logger-renew?label=LICENCE&style=flat-square)
![GitHub repo size](https://img.shields.io/github/repo-size/InkoHX/logger-renew)

</div>

## Screenshots

![Console](https://github.com/InkoHX/parrot-logger/blob/master/media/console.png?raw=true)
![log file](https://github.com/InkoHX/parrot-logger/blob/master/media/log-file.png?raw=true)

## Description

Lightweight logger module.

## Install

### npm

```bash
npm i parrot-logger
```

### Yarn

```bash
yarn add parrot-logger
```

## Usage

```ts
import Logger from 'parrot-logger'

const logger = new Logger({
  console: {
    type: {
      DEBUG: true
    }
  }
})

logger
  .info('Hello')
  .warn('World')
  .error(new Error('oof'))
  .debug('Not displayed on console by default.')
```

## Default Logger Options

Look at [this](https://github.com/InkoHX/parrot-logger/blob/master/src/index.ts#L36-#L79)

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