-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Best way to log from cloud code? #1904
Comments
you can do something like this: when you start your parse-server, configure the logger adapter like this (refer to issue #781)
in your main.js:
|
Thanks for the tip, i guess default setup doesnt expose logger then. |
Is this still valid, though? I'm pretty confused by the conversation on: #2478 Looks like the logger setup in index.js is different now. I'm just trying to figure out how to make it work. Even with verbose set to true, I'm not seeing logs anymore with the latest parse-server code... |
This is a question.
I was reviewing a commit and notice there is winston used for logging.
https://github.com/ParsePlatform/parse-server/blob/fece2a4b47f1469c6371c39bca63df85276e7d5f/src/logger.js
What's the best way of logging from cloud_code/main.js , it used to be console.log or console.error, is there a way to get access to winston instance?
Thank you
The text was updated successfully, but these errors were encountered: