# clix-logger

> Another console log wrapper with colored support and icons

Latest version **2.0.0** (published 2019-07-10) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2019-07-10 |
| First published | 2015-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.11.1 |
| Dependencies | 2 |
| Unpacked size | 86.4 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Roy Riojas |
| Maintainers | royriojas |
| Keywords | console, logger, simple logger, loggy, colored output, color console |

## Links

- npm: https://www.npmjs.com/package/clix-logger
- Repository: https://github.com/royriojas/clix-logger
- Issues: https://github.com/royriojas/clix-logger/issues
- npm.io page: https://npm.io/package/clix-logger

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) 2.4.2
- [moment](https://npm.io/package/moment.md) 2.24.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

- 2.0.0 (latest) — 2019-07-10
- 1.0.2 — 2018-08-09
- 1.0.0 — 2017-01-02
- 0.1.3 — 2015-08-12
- 0.1.2 — 2015-08-11
- 0.1.1 — 2015-08-08
- 0.1.0 — 2015-08-08

## README

[![NPM Version](http://img.shields.io/npm/v/clix-logger.svg?style=flat)](https://npmjs.org/package/clix-logger)
[![Build Status](http://img.shields.io/travis/royriojas/clix-logger.svg?style=flat)](https://travis-ci.org/royriojas/clix-logger)

# clix-logger
Another console log wrapper with colored support and icons

## Install

```bash
npm i -g clix-logger
```

## Usage

```javascript
var options = {
  // Will print the messages using chalk colors. default is false
  coloredOutput: false,
  // Will suppress the output of `subtle` and `log` methods
  // all of the others will still be printed
  quiet: false // default is false,
};
var logger = require('clix-logger')(options);
logger.log('some', 'message', 'here');
```

## methods

- `ok(arg1[, arg2, ...argn] )`
- `subtle(arg1[, arg2, ...argn] )`
- `log(arg1[, arg2, ...argn] )`
- `success(arg1[, arg2, ...argn] )`
- `error(arg1[, arg2, ...argn] )`
- `print(arg1[, arg2, ...argn] )`

**NOTES**:

- All the methods above use `console.log` to print the messages, except the `error` one, which uses `console.error`.
- `subtle` and `log` are suppressed when `options.quiet` is specified.
- `print` does not have an icon at the beginning of the line

## Example

the following code

```javascript
var logger = require('clix-logger')({ coloredOutput: true });

# will use yellow color
logger.ok( 'a', 'simple', 'message', 'of', 'type', 'ok', {
  coloredOutput: false
}, [ 1, 2, 3 ] );

# will use white color
logger.subtle( 'a', 'simple', 'message', 'of', 'type', 'subtle', {
  coloredOutput: false
}, [ 1, 2, 3 ] );

# will use white color
logger.log( 'a', 'simple', 'message', 'of', 'type', 'log', {
  coloredOutput: false
}, [ 1, 2, 3 ] );

# will use red color
logger.error( 'a', 'simple', 'message', 'of', 'type', 'error', {
  coloredOutput: false
}, [ 1, 2, 3 ] );

# will use gray color
logger.print( 'a', 'simple', 'message', 'of', 'type', 'print', {
  coloredOutput: false
}, [ 1, 2, 3 ] );

# will use green color
logger.success( 'a', 'simple', 'message', 'of', 'type', 'success', {
  coloredOutput: false
}, [ 1, 2, 3 ] );
```

Will produce this output:

![screenshot](screenshot.png)

## License

[MIT](./LICENSE)

## Changelog

[Changelog](./changelog.md)

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