Error using Google Stackdriver Logging in App Engine Standard python
问题 My Stack: Google App Engine Standard Python (2.7) Goal: To create named logs in Google Stackdriver Logging, https://console.cloud.google.com/logs/viewer Docs - Stackdriver Logging: https://google-cloud-python.readthedocs.io/en/latest/logging/usage.html Code: from google.cloud import logging as stack_logging from google.cloud.logging.resource import Resource import threading class StackdriverLogging: def __init__(self, resource=Resource(type='project', labels={'project_id': 'project_id'}),