Skip to content

JSON Structured logs for Stackdriver Logging #47

Closed
@ymotongpoo

Description

Currently services in this demo, at least those written in Go, are emitting logs to stderr as of now, which makes the appearance of logs confusing because some info level logs are treated as error level ones, due to Stackdriver Logging's default setting. Changing the log destination to stdout solves this.

Also, all log messages are in text payload. Though this is the demonstration of GKE, it would be great if it can demonstrate the features of Stackdriver Logging as well. For that, using JSON (structured log format) can show how Stackdriver Logging can handle the log more efficiently such as handy filters.

Progress tracker

(added by ahmetb, cc: @ymotongpoo )

Activity

changed the title Better log expression for Stackdriver Logging Structured logs for Stackdriver Logging on Sep 24, 2018
changed the title Structured logs for Stackdriver Logging JSON Structured logs for Stackdriver Logging on Oct 5, 2018
askmeegs

askmeegs commented on Sep 17, 2019

@askmeegs
Contributor

cartservice is the only service remaining to complete this -- closing in favor of #154

1 remaining item

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      JSON Structured logs for Stackdriver Logging · Issue #47 · GoogleCloudPlatform/microservices-demo