问题 I am building a system that is intended to run on Virtual Machines in Google Cloud Platform. However, as a form of backup, it may be run locally as well. That being said, my issue currently is with logging. I have two loggers, both work, a local logger and a cloud logger. Cloud logger import google.cloud.logging from google.cloud.logging.handlers import CloudLoggingHandler from google.oauth2 import service_account CREDS = google.cloud.logging.Client( project=PROJECT, credentials=service