mof-genestamp
middleware of floodesh, prints gene and url of a task, along with # of new tasks and # of records
Install
npm install mof-genestamp
Test
npm test
Usage
In floodesh, use it after parser:
const Worker = Workerconst genestamp = const worker = config; worker;// refer to the section belowworker;
options
- options
<Object>
Could be undefined. Use 0 to exclude fields. Alternatively, you may specify the inclusion of fields use 1.
log format
`[] uri=, gene.key1=, gene.key2=[key21=, key22=], tasks=, dataSet.key1=, dataSet.key2=`
Pay attention
-
no dependency is required for this module, but your the logger instance should be generated by winston@>2.0.0 and your file rotate transport should be generated by winston-daily-rotate-file@>3.2.3
-
make sure
ctx.opt.gene
does not have a circular reference