0.0.4 • Published 5 months ago

watchlog-connect v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

watchlog

A Node.js client for watchlog server .

Usage

const watchlog = require("watchlog-connect")

// Send Metric: Increments a stat by a value (default is 1)
watchlog.increment("Your_metric")

watchlog.increment("Your_metric" , 75)


// Send Metric: Decrements a stat by a value (default is 1)
watchlog.decrement("Your_metric")

watchlog.decrement("Your_metric" , 25)

// Send Metric: Percentage a stat by a value (value is required. min is 0 and max is 100)
watchlog.percentage("Your_metric" , 12.23)

// Send Metric: To measure a specific metric (value is required)
watchlog.gauge("Your_metric" , 12.23)

// Send Metric: To send byte of a metric (value is required)
watchlog.systembyte("Your_metric" , 1024000000) //for example : 1024000000 is 1 GB

// Log manager
watchlog.log("app or service", "info message")
watchlog.successLog("app or service", "success message")
watchlog.errorLog("app or service", "error message")
watchlog.warningLog("app or service", "warning message")
0.0.3

5 months ago

0.0.2

5 months ago

0.0.4

5 months ago

0.0.1

7 months ago