Python Google Cloud Function Logging Severity and Duplicates
问题 I'm working on a simple Google Cloud Function that runs in the Python runtime and I want some simple logging from the Python program to Stackdriver Logging. Based on Google's startup guide, this should be straighforward https://cloud.google.com/logging/docs/setup/python I set up a simple test function to isolate the logging issues I'm seeing import google.cloud.logging def logging_test_background(data, context): logging_client = google.cloud.logging.Client() logging_client.setup_logging()