pavel-avilov commented on a change in pull request #16241:
URL: https://github.com/apache/beam/pull/16241#discussion_r772434226
##########
File path: playground/backend/internal/logger/logger.go
##########
@@ -32,6 +33,25 @@ const (
var handlers []Handler
+// SetupLogger constructs logger by application environment
+// Add handlers in root logger:
+// CloudLoggingHandler - if server running on App Engine
+// StdHandler - if server running locally
+func SetupLogger(ctx context.Context, launchSite, googleProjectId string) {
+ switch launchSite {
+ case "app_engine":
Review comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]