# async-chainable-log

> Plugin for async-chainable that provides simple logging

Latest version **1.1.2** (published 2016-10-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install async-chainable-log
pnpm add async-chainable-log
yarn add async-chainable-log
bun add async-chainable-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 | 2016-10-25 |
| First published | 2016-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matt Carter |
| Maintainers | hash-bang |
| Keywords | async, async-chainable, log |

## Links

- npm: https://www.npmjs.com/package/async-chainable-log
- Repository: https://github.com/hash-bang/async-chainable-log
- Issues: https://github.com/hash-bang/async-chainable-log/issues
- npm.io page: https://npm.io/package/async-chainable-log

## Dependencies (2)

- [argy](https://npm.io/package/argy.md) ^1.3.1
- [async-chainable](https://npm.io/package/async-chainable.md) ^2.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) — 2016-10-25
- 1.1.1 — 2016-09-22
- 1.1.0 — 2016-06-21
- 1.0.0 — 2016-04-27

## README

async-chainable-log
===================
Plugin for [async-chainable](https://github.com/hash-bang/async-chainable) that provides simple logging.


	var asyncChainable = require('async-chainable');
	var asyncChainableLog = require('async-chainable-log');

	asyncChainable()
		.use(asyncChainableLog)

		.log('Waiting 1000ms')
		.then(function(next) {
			setTimeout(next, 1000);
		})

		.logDefaults({prefix: '\t\t'})
		.log('This will be indented with two tabs')

		.end();


API
===
The async-chainable-log API exposes two API calls `log()` and `logDefaults()` the first simply logs and the second takes an object with the following parameters:

| Option             | Description                                                                                                                     |
|--------------------|----------------------------------------------------------------------------------------|
| `callback`         | Optional callback function to use for logging. The default is `console.log`            |
| `prefix`           | Optional prefix to prepend to all logging output before it is passed to the `callback` |
| `suffix`           | Optional suffix to append to all logging output before it is passed to the `callback`  |

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