# gulplog

> Logger for gulp and gulp plugins

Latest version **2.2.0** (published 2024-03-23) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2024-03-23 |
| First published | 2015-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 10.13.0 |
| Dependencies | 1 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 58 |
| Author | Gulp Team |
| Maintainers | yocontra, phated |
| Keywords | gulp, log, logging |

## Links

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

## Dependencies (1)

- [glogg](https://npm.io/package/glogg.md) ^2.2.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.2.0 (latest) — 2024-03-23
- 2.1.0 — 2024-03-10
- 2.0.1 — 2022-09-28
- 2.0.0 — 2022-06-24
- 1.0.0 — 2015-09-26
- 0.0.0 — 2015-08-18

## README

<p align="center">
  <a href="https://gulpjs.com">
    <img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
  </a>
</p>

# gulplog

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]

Logger for gulp and gulp plugins

## Usage

```js
var logger = require('gulplog');

// logs strings
logger.debug('The MOST verbose!');
logger.info('Some important info');
logger.warn('All the warnings to you');
logger.error('OH NO! SOMETHING HAPPENED!');

// supports util.format!
logger.info('%s style!', 'printf');

// log anything
logger.debug({ my: 'obj' });
logger.info([1, 2, 3]);
```

## API

Logging (and level of logging) is controlled by [`gulp-cli`][gulp-cli-url]

#### logger.debug(msg, ...args)

Highest log level. Typically used for debugging purposes.

If the first argument is a string, all arguments are passed to node's
[`util.format()`][util-format-url] before being emitted.

If the first argument is not a string, all arguments will be emitted directly.

#### logger.info(msg, ...args)

Standard log level. Typically used for user information.

If the first argument is a string, all arguments are passed to node's
[`util.format()`][util-format-url] before being emitted.

If the first argument is not a string, all arguments will be emitted directly.

#### logger.warn(msg, ...args)

Warning log level. Typically used for warnings.

If the first argument is a string, all arguments are passed to node's
[`util.format()`][util-format-url] before being emitted.

If the first argument is not a string, all arguments will be emitted directly.

#### logger.error(msg, ...args)

Error log level. Typically used when things went horribly wrong.

If the first argument is a string, all arguments are passed to node's
[`util.format()`][util-format-url] before being emitted.

If the first argument is not a string, all arguments will be emitted directly.

## License

MIT

<!-- prettier-ignore-start -->
[downloads-image]: https://img.shields.io/npm/dm/gulplog.svg?style=flat-square
[npm-url]: https://npmjs.org/package/gulplog
[npm-image]: https://img.shields.io/npm/v/gulplog.svg?style=flat-square

[ci-url]: https://github.com/gulpjs/gulplog/actions?query=workflow:dev
[ci-image]: https://img.shields.io/github/actions/workflow/status/gulpjs/gulplog/dev.yml?branch=master&style=flat-square

[coveralls-url]: https://coveralls.io/r/gulpjs/gulplog
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/gulplog/master.svg?style=flat-square
<!-- prettier-ignore-end -->

<!-- prettier-ignore-start -->
[gulp-cli-url]: https://github.com/gulpjs/gulp-cli
[util-format-url]: https://nodejs.org/docs/latest/api/util.html#util_util_format_format
<!-- prettier-ignore-end -->

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