# gulp-log-line

> Improve your logs with line and file info

Latest version **1.0.1** (published 2016-05-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-log-line
pnpm add gulp-log-line
yarn add gulp-log-line
bun add gulp-log-line
```

## 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.0.1 |
| Published | 2016-05-18 |
| First published | 2016-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ~4.2.2 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gabriel Fürstenheim |
| Maintainers | furstenheim |
| Keywords | gulp, gulpplugin, log, winston, debug |

## Links

- npm: https://www.npmjs.com/package/gulp-log-line
- Repository: https://github.com/furstenheim/gulp-log-line
- Homepage: https://github.com/furstenheim/gulp-log-line#readme
- Issues: https://github.com/furstenheim/gulp-log-line/issues
- npm.io page: https://npm.io/package/gulp-log-line

## Dependencies (3)

- [split2](https://npm.io/package/split2.md) ^2.0.1
- [through2](https://npm.io/package/through2.md) ^2.0.1
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.7

## 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.0.1 (latest) — 2016-05-18
- 1.0.0 — 2016-05-15

## README

#Gulp log-line

[![Build Status](https://travis-ci.org/furstenheim/gulp-log-line.svg?branch=master)](https://travis-ci.org/furstenheim/gulp-log-line)

Log file and line number without the extra cost of reading the stack.

## Usage
```
var gulp = require('gulp');
var logLine = require('gulp-log-line');
gulp.task('line-log', function() {
    return gulp.src("file.js", {buffer : true})
    //Write here the loggers you use.
        .pipe(logLine(['console.log', 'winston.info']))
        .pipe(gulp.dest('./build'))

})

gulp.task('default', ['line-log'])
```

## Example

file.js
```
console.log('First log')
var someVariable
console.log('Second log')
```

Becomes

file.js
```
console.log('file.js:1', 'First log')
var someVariable
console.log('file.js:3', 'Second log')
```

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