bs-winston-cloudwatch

0.7.4 • Public • Published

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_(() => { ... });

Package Sidebar

Install

npm i bs-winston-cloudwatch

Weekly Downloads

4

Version

0.7.4

License

MIT

Unpacked Size

5.81 kB

Total Files

7

Last publish

Collaborators

  • seppjus1