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

Why showing this “Papertrail is a legacy winston transport. Consider upgrading”

Open Hasibul-Hasan opened this issue 5 years ago • 2 comments

I am using Winston version

"winston": "^3.2.1",
"winston-papertrail": "^1.0.5"

When I add transports: [ new winston.transports.Papertrail({})]

I get

Papertrail is a legacy winston transport. Consider upgrading: - Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md

why this message show and how do I stop showing this.

Hasibul-Hasan avatar Apr 08 '19 12:04 Hasibul-Hasan

The master branch is a legacy transport for winston3. There is a v2 branch that is implemented in winston3 format. You can install it: npm install https://github.com/kenperkins/winston-papertrail.git#v2 --save

james-ingold avatar Feb 09 '20 14:02 james-ingold

There are a few papertrail connection differences between the old way and the new (winston3) way. It took me a while to find the details, but the readme that you can find here shows how to set up for Winston3.

sqljim avatar Apr 27 '20 05:04 sqljim