Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Winston 3.0.0 results in error #57

Open
reddishtg opened this issue Apr 16, 2018 · 15 comments
Open

Winston 3.0.0 results in error #57

reddishtg opened this issue Apr 16, 2018 · 15 comments
Labels

Comments

@reddishtg
Copy link

In trying to use winston 3.0.0 the following error was received: { clone } was removed in [email protected]. It looks like this is used on line 102 of winston-loggly.js and causes an error. Any way to work around this?

@DABH
Copy link
Contributor

DABH commented Apr 24, 2018

You can see the definition for the clone function here: https://github.com/winstonjs/winston/blob/2.x/lib/winston/common.js . It's just a util function to clone an object. You could either copy a function like this to winston-loggly, or use one of a number of other packages out there for cloning an object. Could even consider an ES6-style clone like Object.assign({}. meta);.

We'd welcome a PR for this if you'd care to investigate!

@DABH DABH added the bug label Apr 24, 2018
@reddishtg
Copy link
Author

I'm afraid that I don't have time to work on it myself, but it seemed odd to me that the clone function was removed (though it appears not all the way), but it is still referenced in other parts of the codebase.

@DABH
Copy link
Contributor

DABH commented Apr 24, 2018

We're focused on pushing a final release of winston@3 out the door at the moment, but once that is done I imagine we will go through all the custom transports like these and try to clean them up and make them all 3.0-compatible. It's indeed an issue that transports like this one are only 2.x-compatible at the moment.

@DABH
Copy link
Contributor

DABH commented Apr 24, 2018

(Incidentally clone feels like a "core javascript" kind of function, so it's better design if that functionality isn't defined somewhere in a logging library -- but of course it's a useful function for various scenarios, like here...)

@dbartholomae
Copy link

Any update here? When is compatibility to winston 3 planned? If you already have a rough idea of what needs to be done and it is'nt too much work I could provide a PR.

@indexzero
Copy link
Member

indexzero commented Jun 26, 2018

PR would be welcome.

EDIT: more context the winston team is more focused on any critical path bugs following the 3.0.0 release. Updating transports to latest will come after that. Help from the community is a major boon to the ecosystem <3

@dbartholomae
Copy link

Well, there's a lot of open PRs already ^^

@hrsFire
Copy link

hrsFire commented Jul 11, 2018

Seems a little weird that the custom transports aren't really ready for winston@3. Such bugs shouldn't occur for stable software which seems to be maintained by the same developers! Why did this go through QA?

@flosky
Copy link

flosky commented Jul 26, 2018

Same problem here

@DABH
Copy link
Contributor

DABH commented Sep 26, 2018

Let's discuss on #61 -- interested parties welcome to chime in there...

@tiendq
Copy link

tiendq commented Jul 11, 2019

@DABH #61 makes me confused, it's hard to follow a big one like that, opening for years.

Is it issue fixed somewhere?

@quocvu
Copy link

quocvu commented Aug 20, 2019

I am hitting this bug.

@jakubmz
Copy link

jakubmz commented Nov 22, 2023

Still broken

Error: { clone } was removed in [email protected].

@DABH
Copy link
Contributor

DABH commented Dec 4, 2023

@jakubmz At the time, I think there was some discussion around winston-loggly-bulk vs. winston-loggly (#61 (comment)). Open to opinions on which package should be preferred going forwards, and/or if there are meaningful differences between the two

@jakubmz
Copy link

jakubmz commented Dec 4, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants