Ilya Kozyrev created BEAM-13032:
-----------------------------------
Summary: [Playground] Log service
Key: BEAM-13032
URL: https://issues.apache.org/jira/browse/BEAM-13032
Project: Beam
Issue Type: New Feature
Components: beam-playground
Reporter: Ilya Kozyrev
As a *maintainer*,
I want a package for effective and structured logging, which I can use in any
go code in Beam playground.
I prefer to use Cloud Logging's similar log structure, and I would like to
have a standard interface for logging with main Info, Warn, Error, etc.,
methods.
*Acceptance criteria*
# Logging structure implemented with standard functions including formatting
option
## {{logger.Info("some string")}}
## {{logger.Infof("some string %s", "substring")}}
# The logging structure uses [Cloud
logging|https://pkg.go.dev/google.golang.org/cloud/logging] to create
[Entry|https://pkg.go.dev/google.golang.org/cloud/logging#Entry]. For this
purpose
# Logging writes in stdout and stderr using Go native
## log.{{log.Print(logging.Entry{})}}
# Logging structure implemented JSON marshal to convert Entry into JSON
# All log occurrences are replaced with a new logging structure
--
This message was sent by Atlassian Jira
(v8.3.4#803005)