0.7.4 • Published 2 years ago

bs-winston-cloudwatch v0.7.4

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

npm

BsWinstonCloudwatch

Adapter of winston-cloudwatch winston transport plugin for ReasonML. Used with BsWinston.

Install

npm install bs-winston-cloudwatch

And to bsconfig.json: "bs-dependencies": [..., "bs-winston-cloudwatch", ...]

bs-winston must naturally be installed also.

Examples

let (cloudwatchTransport, kthxbyeFn) = BsWinstonCloudwatch.Transport.createCloudwatch(
  ~logGroupName = "xxxx",
  ~logStreamName = "yyyy",
);

let logger = Builder.create()
  -> Builder.addTransport(cloudwatchTransport)
  -> Builder.build;

/*  ... after logging done, flush and close:  */
kthxbye()
|> Js.Promise.then_(() => { ... });
0.7.4

2 years ago

0.7.3

2 years ago

0.7.2

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.2

4 years ago

0.6.1

5 years ago

0.5.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago