# luster-var-log

> Stream luster master and workers output to files

Latest version **0.2.4** (published 2015-06-16) · 0 weekly downloads

## Install

```sh
npm install luster-var-log
pnpm add luster-var-log
yarn add luster-var-log
bun add luster-var-log
```

## 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.2.4 |
| Published | 2015-06-16 |
| First published | 2015-03-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | corpix |
| Keywords | luster, logger, log |

## Links

- npm: https://www.npmjs.com/package/luster-var-log
- Repository: https://github.com/corpix/luster-var-log
- Issues: https://github.com/corpix/luster-var-log/issues
- npm.io page: https://npm.io/package/luster-var-log

## Dependencies (1)

- [mkdirp](https://npm.io/package/mkdirp.md) 0.3.x

## 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.2.4 (latest) — 2015-06-16
- 0.2.3 — 2015-03-29
- 0.2.2 — 2015-03-29
- 0.2.1 — 2015-03-29

## README

luster-var-log [![NPM version][npm-image]][npm-link] [![Build status][ci-badge]][ci-link]
===============

[![Dependency status][deps-image]][deps-link]
[![devDependency status][devdeps-image]][devdeps-link]
[![peerDependency status][peerdeps-image]][peerdeps-link]

Stream all std output from [luster][luster-link] master and workers to files.

This extension supports:
  - logfile reopening on `SIGHUP`(by default)
  - custom log line transformation functions

## Usage

Install extension module to application:

```console
$ npm install --save luster-var-log
```

Add `"luster-var-log"` to `"extensions"` section in the luster configuration:

```javascript
module.exports = {
    extensions: {
        'luster-var-log': {
            // Signal that process should handle to reopen logfiles
            // signal: 'SIGHUP',

            // Transform each line with custom transform function
            // transformFn: function(proc, line) {return 'prefix ' + line;},

            // logs files, both optional
            //   {string} fileName – stream output to file
            //   true  – don't redirect output, keep as is
            //   false – shutdown output
            stdout: '/var/log/app/stdout.log',
            stderr: '/var/log/app/stderr.log'
        }
    }
};
```


[npm-image]: https://img.shields.io/npm/v/luster-var-log.svg?style=flat
[npm-link]: https://npmjs.org/package/luster-var-log
[deps-image]: https://img.shields.io/david/corpix/luster-var-log.svg?style=flat
[deps-link]: https://david-dm.org/corpix/luster-var-log
[devdeps-image]: https://img.shields.io/david/dev/corpix/luster-var-log.svg?style=flat
[devdeps-link]: https://david-dm.org/corpix/luster-var-log#info=peerDependencies
[peerdeps-image]: https://img.shields.io/david/peer/corpix/luster-var-log.svg?style=flat
[peerdeps-link]: https://david-dm.org/corpix/luster-var-log#info=peerDependencies
[luster-link]: https://github.com/nodules/luster
[ci-badge]: https://travis-ci.org/corpix/luster-var-log.svg?branch=master
[ci-link]: https://travis-ci.org/corpix/luster-var-log

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