Skip to content

Best way to log from cloud code? #1904

@jeveloper

Description

@jeveloper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions