# gorilog

> A simple regex-categorized colorful console logger.

Latest version **2.0.5** (published 2018-08-29) · MIT license · 0 weekly downloads

## Install

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

## 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.5 |
| Published | 2018-08-29 |
| First published | 2018-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hideyuki Hirauchi |
| Maintainers | hirauchi0713 |
| Keywords | simple, regex, categorized, colorful, console, logger |

## Links

- npm: https://www.npmjs.com/package/gorilog
- Repository: https://github.com/hirauchi0713/gorilog
- Homepage: https://github.com/hirauchi0713/gorilog#readme
- Issues: https://github.com/hirauchi0713/gorilog/issues
- npm.io page: https://npm.io/package/gorilog

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [moment](https://npm.io/package/moment.md) ^2.22.2

## 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
- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K 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

## Recent versions

- 2.0.5 (latest) — 2018-08-29
- 2.0.4 — 2018-08-25
- 2.0.3 — 2018-08-25
- 2.0.2 — 2018-08-25
- 2.0.1 — 2018-08-25
- 2.0.0 — 2018-08-25

## README

[![Version npm](https://img.shields.io/npm/v/gorilog.svg?style=flat-square)](https://www.npmjs.com/package/gorilog)
[![MIT License][license-image]][license-url]

# 🦍 gorilog
A simple regex-categorized colorful console logger.

## INSTALL
```
yarn add gorilog
```

## Usage
test.js
```js
const gl = require('gorilog')
const obj = { foo: 'foo', bar: 'bar' }
const arr = [ 0, 1, 2, 3, obj ]

function doAll(logger) {
  console.log(logger.category, logger.level)
  logger.fatal('fatal msg', arr)
  logger.error('error msg', arr)
  logger.warn ('warn msg' , arr)
  logger.info ('info msg' , arr)
  logger.debug('debug msg', arr)
  logger.trace('trace msg', arr)
}

doAll(gl())
doAll(gl('test'))
doAll(gl('model/DB'))
doAll(gl('model/Mail'))
doAll(gl('csev1'))
doAll(gl('csev2'))
doAll(gl('csev3'))
```

```
$ yarn test
```
![output](https://raw.githubusercontent.com/hirauchi0713/gorilog/readme-images/output.png)

```
$ yarn test2
```
![output](https://raw.githubusercontent.com/hirauchi0713/gorilog/readme-images/output2.png)

## AUTHOR
Hideyuki Hirauchi

## LICENSE
gorilog is freely distributable under the terms of the [MIT license][license-url].

[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: LICENSE

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