Betterstack JavaScript libraries.
npm install treeder/betterstack
let bsLogger = new BetterstackLogger({host: "abc.betterstackdata.com", token: "bstoken"})
bsLogger.log("hello world!")
bsLogger.log({message: "hello!"})
bsLogger.log(err)
bsLogger.log("uh oh", err)
bsLogger.log("This is some data:", {name: "John Wick"})
await bsLogger.flush() // flush all messages in one batch