winston-papertrail icon indicating copy to clipboard operation
winston-papertrail copied to clipboard

Clarify winston compatibility

Open henhal opened this issue 6 years ago • 1 comments

I've been using winston-papertrail with winston 1.1.2 for some time, working fine. However, a module requiring winston 2.1.1 resulted in winston.transports not being assigned Papertrail as a transport. It seems to work to use the returned constructor from winston-papertrail directly, it seems only the injection of winston.transports.Papertrail as the constructor seems to fail.

I saw another issue about winston 3.0 breaking changes, but is it known/expected that winston-papertrail also breaks with 2.x?

henhal avatar Jun 25 '18 12:06 henhal

It should definitely work in winston 2.1.1, and I just tested that exact version. No problems using new winston.transports.Papertrail. And this has been there from the beginning, so even an older version of winston-papertrail should be fine.

Is it possible that two different versions of winston are being used simultaneously? If the module has its own private copy of 2.1.1 then I could imagine some weirdness like this.

markdascher avatar Jun 28 '18 15:06 markdascher