# mustang-log

> A nice, clean looking log system!

Latest version **1.1.2** (published 2020-04-25) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install mustang-log
pnpm add mustang-log
yarn add mustang-log
bun add mustang-log
```

## 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.1.2 |
| Published | 2020-04-25 |
| First published | 2020-04-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | miniDeathStriker |
| Maintainers | minideathstriker |
| Keywords | log, console, dev |

## Links

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

## Dependencies (2)

- [util](https://npm.io/package/util.md) ^0.12.2
- [chalk](https://npm.io/package/chalk.md) ^4.0.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.1.2 (latest) — 2020-04-25
- 1.1.1 — 2020-04-25
- 1.1.0 — 2020-04-25
- 1.0.9 — 2020-04-23
- 1.0.7 — 2020-04-22
- 1.0.6 — 2020-04-22
- 1.0.5 — 2020-04-21
- 1.0.4 — 2020-04-21
- 1.0.3 — 2020-04-21
- 1.0.2 — 2020-04-21
- 1.0.1 — 2020-04-21
- 1.0.0 — 2020-04-21

## README

<p align="center">**Mustang Log**</p>
A handy tool if you want to clean up your console logging!

How it works:
```js
const { log } = require('mustang-log');
log('something', 'TYPE', showTime);
//TYPES: INFO, DEBUG, WARN, ERROR, VERBOSE(default, specify no type).
// showTime: Show time at which it was logged. (prefixed)
```

<p align="center">Examples:</p>

Custom log TYPES!

```js
const { log } = require('mustang-log');
log('this is custom!', {name: 'CUSTOM', bgColor: '#ff0000', textColor: '#ffffff'})
```


Info:
![INFO](https://ur-mommy.is-inside.me/NJspxnX0.png)

```js
const { log } = require('mustang-log');
log('This is what info looks like!', 'INFO');
```

Debug:
![DEBUG](https://ur-mommy.is-inside.me/5z9jJZZs.png)

```js
const { log } = require('mustang-log');
log('This is what debug looks like!', 'DEBUG');
```

Warn:
![WARN](https://ur-mommy.is-inside.me/lIMxQUB8.png)

```js
const { log } = require('mustang-log');
log('This is what warn looks like!', 'warn');
```

Error:
![ERROR](https://ur-mommy.is-inside.me/5S5z62rU.png)

```js
const { log } = require('mustang-log');
log('This is what error looks like!', 'error');
```

Verbose:
![VERBOSE](https://ur-mommy.is-inside.me/imtdndef.png)

```js
const { log } = require('mustang-log');
log('This is what verbose looks like!');
```

Logging objects

For the debug tag, we can imagine you want to log objects or similar types. this is possible.

```js
log({
    "objecs":"log nicely too!",
    logging: (arg) => {
        log('something', 'verbose', true)
    } 
}, 'DEBUG');
```
Translates to: ![objects](https://ur-mommy.is-inside.me/iYrvw2T3.png)
You can see linebreaks and newlines are handled just fine.

![all](https://ur-mommy.is-inside.me/X1TbNLgZ.png)

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