# gulp-logger

> Gulp plugin for logging stream stages, transformation and progress

Latest version **0.0.2** (published 2014-08-03) · ISC license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2014-08-03 |
| First published | 2014-08-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Chris Greeff |
| Maintainers | chrisgreeff |
| Keywords | gulp, gulpplugin, log, logger, debug, output, progress |

## Links

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

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ^0.5.1
- [rename](https://npm.io/package/rename.md) ^0.2.3
- [through2](https://npm.io/package/through2.md) ^0.5.1
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.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

- 0.0.2 (latest) — 2014-08-03
- 0.0.1 — 2014-08-03

## README

gulp-logger
===========

Logger plugin for [gulp](http://gulpjs.com/) for logging stream stages, transformations and progress.

# Install

```bash
$ npm install gulp-logger --save
```

# Basic Usage

Something like this:

```js
var gulp = require('gulp'),
    gzip = require('gulp-gzip'),
    logger = require('gulp-logger');

gulp.task('gzip', function () {
    gulp.src('**/*.js')
        .pipe(logger({
            before: 'Starting Gzip...',
            after: 'Gzipping complete!',
            extname: '.js.gz',
            showChange: true
        }))
        .pipe(gzip());
});
```

And a folder structure like this:

```text
files-to-stream/
    |- baz/
    |   |- file.js
    |   `- wat.js
    |
    |- foo.js
    |- bar.js
    `- derp.js
```

Would give you this:

![Imgur](http://i.imgur.com/NvKNwAY.png)

## Options

#### `before` *String*
The message you want to show before the chunks are shown.

#### `after` *String*
The message you want to show after the chunks are shown.

#### `beforeEach` *String*
The message you want to show before each chunk.

#### `afterEach` *String*
The message you want to show after each chunk.

#### `prefix` *String*
A constant value to prefix to each filename in the chunk.

#### `suffix` *String*
A constant value to suffix to each filename in the chunk.

#### `extname` *String*
A constant value to set as the extension for each filename in the chunk.

#### `basename` *String*
A constant value to set as the basename for each filename in the chunk.

#### `dest` *String*
A constant value to set as the dest for each filename in the chunk.

#### `colors` *Boolean*
Whether or not to turn off colors on the output.

#### `display='rel'` *String*

How you want the path of the chunk to show.
- `'rel'`: Relative path
- `'abs'`: Absolute path
- `'name'`: Filename

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