Created
January 13, 2016 23:20
-
-
Save alexvanboxel/c8932f0fc28fe3893c7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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