You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/12/15 13:49:31 UTC

[GitHub] [beam] pavel-avilov commented on a change in pull request #16241: [BEAM-13440] [Playground] Implement initialization of Cloud Logger

pavel-avilov commented on a change in pull request #16241:
URL: https://github.com/apache/beam/pull/16241#discussion_r769642238



##########
File path: playground/backend/internal/logger/logger.go
##########
@@ -32,6 +34,25 @@ const (
 
 var handlers []Handler
 
+// SetupLogger constructs logger by application environment
+// Add handlers in root logger:
+//   CloudLoggingHandler - for logs to the Cloud Logging service if server running on App Engine
+//   StdHandler - for logs to the stderr/stdout if server running locally
+func SetupLogger(ctx context.Context, appEnv environment.ApplicationEnvs) {

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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org