Skip to content

Conversation

@withnale
Copy link

@withnale withnale commented Jun 22, 2022

Was looking for a pipe solution for sending logs to stackdriver and found logpipe.

However, we utilise the structured logging that stackdriver provides and this expects the logs to be passed to stackdriver from JSON logs.

This PR introduces a new flag called --json which if specified:

  • Tries to handle the log line as an encapsulated JSON log, unmarshalling and passing to stackdriver correctly.
  • If the log line cannot be parsed as JSON will fallback to logging it normally as text

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

Successfully merging this pull request may close these issues.

1 participant