1.0.8 • Published 2 years ago

harvest-watch-tower-node v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

#Installation

You can simply install the node module for Harvest Watch Tower with the following command:

npm i --save harvest-watch-tower-node

#Initialization const harvestWatchTower = require("harvest-watch-tower-node");

const harvestWatchTowerLog = harvestWatchTower.init({ beamId : "beamId", host : "watchtower.graindata.com", dev : false, token : "token" //Required for non-public beams });

beamId: Required - This is the beam id provided by Watch Tower host: Optional - Default watchtower.graindata.com, can be used to set custom host dev: Optional - Default false, if true logs will not be visible in dashboards token: Required for non-public beams

#Logging There are 6 logging levels:

debug info start done warning error critical

Each has it's own function within your "harvestWatchTowerLog" object.

harvestWatchTowerLog.info({ message : "message", executionId : "executionId", customData : { var1 : "value1" }
})

message: Required - This is your logging message as a string executionId: Required for start and done logging. This is used to check whether a start process has also a done message customData: Optional - Object with custom data variables

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago