0.2.4 • Published 9 years ago

luster-var-log v0.2.4

Weekly downloads
28
License
-
Repository
github
Last release
9 years ago

luster-var-log NPM version Build status

Dependency status devDependency status peerDependency status

Stream all std output from luster 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:

$ npm install --save luster-var-log

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

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'
        }
    }
};
0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago