const winston =const CloudWatchTransport =const logger = winston
If, for any reason, logging to CloudWatch should fail, then the transport will
error event. It is recommended that you
subscribe to this event
to avoid crashes.
As you may have noticed, there is also winston-cloudwatch, which predates this module. After making some contributions to that one, I felt like writing my own version. Feel free to use whichever you like best.