cloud function result metadata appended to log message body instead of log info object #8716
Open
3 tasks done
Labels
bounty:$10
Bounty applies for fixing this issue (Parse Bounty Program)
type:feature
New feature or improvement of existing feature
New Feature / Enhancement Checklist
Current Limitation
Parse logs the result of executed cloud functions to the console. It appends JSON of the input and result of the cloud function to the log message string. This makes it difficult to have clean, succinct log messages in favor of handling that metadata in your own log message adapter effectively.
Example current output:
Current log info metadata for cloud function calls:
Feature / Enhancement Description
Parse could not append potentially messy JSON to a log message string in favor of adding it to log info metadata, which lets developers decide if they want to output it via their own LoggerAdapter.
Example new default logger output:
Example new log info object:
Example Use Case
Alternatives / Workarounds
Custom LoggerAdapter can do a string search to discover cloud function logs and split by
\n
to extract the appended JSON to clean up the log, and then parse it further if needed.3rd Party References
The text was updated successfully, but these errors were encountered: