Skip to content

Instantly share code, notes, and snippets.

@alexvanboxel
Created January 13, 2016 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexvanboxel/c8932f0fc28fe3893c7a to your computer and use it in GitHub Desktop.
Save alexvanboxel/c8932f0fc28fe3893c7a to your computer and use it in GitHub Desktop.
import logging
from logging import config
logger = logging.getLogger('my-app')
if __name__ == "__main__":
config.fileConfig("logging.ini", disable_existing_loggers=False)
logger.info("Yes, we love Cloud Logging")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment