Log bellboy events to the file system.
npm install bellboy-log-reporter
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();
})();
option | type | description |
---|---|---|
path | string |
Path to the folder where logs will be stored. If not specified, logs will be saved to the bellboy-logs folder inside %AppData% . |
You can build js
source by using npm run build
command.
Tests can be run by using npm test
command.