Skip to content

Conversation

DylanRussell
Copy link
Contributor

add a parameter route_logs_to_stdout_as_json to the CloudLoggingExporter

@DylanRussell DylanRussell requested a review from a team as a code owner February 25, 2025 18:16
_set_payload_in_log_entry(log_entry, log_record.body)
log_entries.append(log_entry)
if self.route_logs_to_stdout_as_json:
print(LogEntry.to_json(log_entry))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused. Should I just be logging the jsonPayload field of the log ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need quite a bit more stuff here, like documenting why and how the user would use this.

@aabmass
Copy link
Collaborator

aabmass commented Sep 30, 2025

@DylanRussell still working on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants