Skip to content

Better-integrate our logging with Google Cloud logging #771

Open
@grahamalama

Description

@grahamalama

It appears that all of our logs are being written as Errors in the Google Cloud Logging dashboard:

image

I believe this is due to the fact that we're using a StreamHandler to handle logging, which by default writes to stderr (Python docs).

We could modifying our logging config to write to stdout instead. This would turn all of the errors into Info messages.

However, doing so would then have the opposite effect -- we'd, for example, bury exceptions as Info messages.

One option to improve the usefulness of the logging dashboard would be to write our logs in a format that would integrate well with Google Cloud logging. There are a few options outlined here.

I think moving in this direction might also mean not using Mozlog. It seems like the two structured log formats are incompatible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions