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

Question: Is there an easy way to integrate this with console.log? #4

Open
elie222 opened this issue Dec 22, 2015 · 1 comment
Open

Comments

@elie222
Copy link

elie222 commented Dec 22, 2015

I just added this package to my app. I do console.log's all over the place already. Is there an easy way to replace the current console.log's with this package's?

Most importantly is the code that can run on both client and server. For server code I can use the new log object I've added and then do log.info(), but what is the recommended usage for client?

@batjko
Copy link

batjko commented Jan 14, 2016

I was wondering the same thing.
The most straight-forward "Meteor" thing would be to wrap the call into a Meteor method, which you can then call everywhere.

But that's clunky, because you'd have to deal with the different log levels explicitly and all that.

I suppose, alternatively you could simply re-implement the winston-papertrail (non-Meteor) just for the client side, but re-use the same config settings. I haven't tried that though.

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

No branches or pull requests

2 participants