diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2018-01-12 20:23:02 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2018-01-12 20:23:02 +0100 |
| commit | 8cf7550c4a8e7a89257d45dfb8591adc29957d06 (patch) | |
| tree | 2bad70abce04fdc5a9b0154436524c47ccaca9e4 | |
| parent | b49396ee2b987c41c0097a5b1a72cd9d32fa5379 (diff) | |
| download | cruncher-8cf7550c4a8e7a89257d45dfb8591adc29957d06.tar.gz cruncher-8cf7550c4a8e7a89257d45dfb8591adc29957d06.zip | |
add winston file logging
| -rw-r--r-- | worker.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -38,6 +38,10 @@ const logger = new (winston.Logger)({ new (winston.transports.Console)({ timestamp: true, colorize: true + }), + new (winston.transports.File)({ + label: QUEUE, + filename: "cruncher.log" }) ] }); |
