0.0.1 • Published 4 years ago

bellboy-log-reporter v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Build Status codecov npm

bellboy-log-reporter

Log bellboy events to the file system.

Installation

npm install bellboy-log-reporter

Usage

const bellboy = require('bellboy');
const LogReporter = require('bellboy-log-reporter');

(async () => {
    const processor = new bellboy.DynamicProcessor({
        generator: async function* () {
            for (let i = 0; i < 100; i++) {
                yield { hello: `world_${i}` }
            }
        },
    });
    const destination = new bellboy.StdoutDestination();
    const job = new bellboy.Job(processor, [destination], {
        reporters: [
            new LogReporter(),
        ],
    });
    await job.run();
})();

Options

optiontypedescription
pathstringPath to the folder where logs will be stored. If not specified, logs will be saved to the bellboy-logs folder inside %AppData%.

Building

You can build js source by using npm run build command.

Testing

Tests can be run by using npm test command.