Skip to content

Stream all output from luster master and workers to files without any code modifications.

License

Notifications You must be signed in to change notification settings

eakorolev/luster-log-file

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luster-log-file

Stream all output from luster master and workers to files.

Usage

Install extension module to application:

$ npm install --save luster-log-file

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

module.exports = {
    // ...

    extensions : {
        "luster-log-file" : {
            // override `console.log`, `.warn`, `.info` and `.error` methods
            // to add severity marks to output
            extendConsole : true,

            // logs files, both optional
            stdout : "/var/run/luster/myapp/output.log",
            stderr : "/var/run/luster/myapp/errors.log"
        }
    }
};

Have fun! Use console logging methods or write to process.stdout, no workers code modification required.

About

Stream all output from luster master and workers to files without any code modifications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published