Skip to content

treeder/betterstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

betterstack

Betterstack JavaScript libraries.

Install

npm install treeder/betterstack

Usage

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

About

Betterstack JavaScript libraries.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published